diff --git a/entitymanager/src/test/java/org/hibernate/ejb/test/packaging/ScannerTest.java b/entitymanager/src/test/java/org/hibernate/ejb/test/packaging/ScannerTest.java index 643d533fe5..4b77e378ac 100644 --- a/entitymanager/src/test/java/org/hibernate/ejb/test/packaging/ScannerTest.java +++ b/entitymanager/src/test/java/org/hibernate/ejb/test/packaging/ScannerTest.java @@ -98,5 +98,10 @@ public class ScannerTest extends PackagingTestCase { emf = Persistence.createEntityManagerFactory( "defaultpar", integration ); assertTrue( CustomScanner.isUsed() ); emf.close(); + + CustomScanner.resetUsed(); + emf = Persistence.createEntityManagerFactory( "defaultpar", null ); + assertTrue( ! CustomScanner.isUsed() ); + emf.close(); } }