Brett Meyer commented on an issue
Hibernate ORM / Bug HHH-8227
FileZippedJarVisitor looking in wrong places in test scope
I'm not sure where is the bug, sorry if I'm wrong.

I can reproduce it in the following way:

Creating tests backed by OpenEJB, I add a dependency in test scope, which have other dependency, which have more beans and another PersistenceContext.

Something like: Root <- dep <- Persistence

Anyway, what happens is that somehow the FileZippedJarVisit...