As described in https://hibernate.atlassian.net/browse/HHH-11248 the test persistence-unit name should be different from the main one. A warn of duplicate persistence unit name should be raised but it seems it is not happening.