diff --git a/hibernate-core/src/test/java/org/hibernate/jpa/test/enhancement/TestLazyPropertyOnPreUpdate.java b/hibernate-core/src/test/java/org/hibernate/jpa/test/enhancement/TestLazyPropertyOnPreUpdate.java index 71244a07fb..c1cb4e0f09 100644 --- a/hibernate-core/src/test/java/org/hibernate/jpa/test/enhancement/TestLazyPropertyOnPreUpdate.java +++ b/hibernate-core/src/test/java/org/hibernate/jpa/test/enhancement/TestLazyPropertyOnPreUpdate.java @@ -50,8 +50,6 @@ public class TestLazyPropertyOnPreUpdate extends BaseEntityManagerFunctionalTest @Before public void prepare() throws Exception { - buildEntityManagerFactory(); - EntityPersister ep = entityManagerFactory().getMetamodel().entityPersister( EntityWithLazyProperty.class.getName() ); assertTrue( ep.getInstrumentationMetadata().isEnhancedForLazyLoading() );