@Test public void testCreateJPAContainerHasCorrectEntityProvider() { JPAContainer<Person> c = JPAContainerFactory.make(Person.class, entityManager); assertEquals(CachingMutableLocalEntityProvider.class, c .getEntityProvider().getClass()); EntityManager entityManagerOfProvider = ((CachingMutableLocalEntityProvider<?>) c .getEntityProvider()).getEntityManager(); assertNotNull(entityManagerOfProvider); assertEquals(entityManager, entityManagerOfProvider); }
public static <T> JPAContainer<T> make(Class<T> entityClass, EntityManager entityManager) { return makeWithEntityProvider(entityClass, new CachingMutableLocalEntityProvider<T>(entityClass, entityManager)); }
JPAContainerFactory { public static <T> JPAContainer<T> make(Class<T> entityClass, EntityManager entityManager) { return makeWithEntityProvider(entityClass, new CachingMutableLocalEntityProvider<T>(entityClass, entityManager)); } }
JPAContainerFactory { public static <T> JPAContainer<T> make(Class<T> entityClass, EntityManager entityManager) { return makeWithEntityProvider(entityClass, new CachingMutableLocalEntityProvider<T>(entityClass, entityManager)); }  }
JPAContainerFactory { public static <T> JPAContainer<T> make(Class<T> entityClass, EntityManager entityManager) { return makeWithEntityProvider(entityClass, new CachingMutableLocalEntityProvider<T>(entityClass, entityManager)); }  static JPAContainer<T> make(Class<T> entityClass,
            EntityManager entityManager); static JPAContainer<T> make(Class<T> entityClass,
            String persistenceUnitName); synchronized static EntityManager createEntityManagerForPersistenceUnit(
            String name); static JPAContainer<T> makeReadOnly(Class<T> entityClass,
            EntityManager entityManager); static JPAContainer<T> makeReadOnly(Class<T> entityClass,
            String persistenceUnitName); static JPAContainer<T> makeBatchable(Class<T> entityClass,
            EntityManager entityManager); static JPAContainer<T> makeBatchable(Class<T> entityClass,
            String persistenceUnitName); static JPAContainer<T> makeNonCached(Class<T> entityClass,
            EntityManager entityManager); static JPAContainer<T> makeNonCached(Class<T> entityClass,
            String persistenceUnitName); static JPAContainer<T> makeNonCachedReadOnly(
            Class<T> entityClass, EntityManager entityManager); static JPAContainer<T> makeNonCachedReadOnly(
            Class<T> entityClass, String persistenceUnitName); static JPAContainer<T> makeNonCachedReadOnlyJndi(
            Class<T> entityClass); static JPAContainer<T> makeNonCachedReadOnlyJndi(
            Class<T> entityClass, JndiAddresses jndiAddresses); static JPAContainer<T> makeNonCachedJndi(Class<T> entityClass); static JPAContainer<T> makeNonCachedJndi(Class<T> entityClass,
            JndiAddresses jndiAddresses); static JPAContainer<T> makeJndi(Class<T> entityClass); static JPAContainer<T> makeJndi(Class<T> entityClass,
            JndiAddresses jndiAddresses); static JPAContainer<T> makeBatchableJndi(Class<T> entityClass); static JPAContainer<T> makeBatchableJndi(Class<T> entityClass,
            JndiAddresses jndiAddresses); }
JPAContainerFactory { public static <T> JPAContainer<T> make(Class<T> entityClass, EntityManager entityManager) { return makeWithEntityProvider(entityClass, new CachingMutableLocalEntityProvider<T>(entityClass, entityManager)); }  static JPAContainer<T> make(Class<T> entityClass,
            EntityManager entityManager); static JPAContainer<T> make(Class<T> entityClass,
            String persistenceUnitName); synchronized static EntityManager createEntityManagerForPersistenceUnit(
            String name); static JPAContainer<T> makeReadOnly(Class<T> entityClass,
            EntityManager entityManager); static JPAContainer<T> makeReadOnly(Class<T> entityClass,
            String persistenceUnitName); static JPAContainer<T> makeBatchable(Class<T> entityClass,
            EntityManager entityManager); static JPAContainer<T> makeBatchable(Class<T> entityClass,
            String persistenceUnitName); static JPAContainer<T> makeNonCached(Class<T> entityClass,
            EntityManager entityManager); static JPAContainer<T> makeNonCached(Class<T> entityClass,
            String persistenceUnitName); static JPAContainer<T> makeNonCachedReadOnly(
            Class<T> entityClass, EntityManager entityManager); static JPAContainer<T> makeNonCachedReadOnly(
            Class<T> entityClass, String persistenceUnitName); static JPAContainer<T> makeNonCachedReadOnlyJndi(
            Class<T> entityClass); static JPAContainer<T> makeNonCachedReadOnlyJndi(
            Class<T> entityClass, JndiAddresses jndiAddresses); static JPAContainer<T> makeNonCachedJndi(Class<T> entityClass); static JPAContainer<T> makeNonCachedJndi(Class<T> entityClass,
            JndiAddresses jndiAddresses); static JPAContainer<T> makeJndi(Class<T> entityClass); static JPAContainer<T> makeJndi(Class<T> entityClass,
            JndiAddresses jndiAddresses); static JPAContainer<T> makeBatchableJndi(Class<T> entityClass); static JPAContainer<T> makeBatchableJndi(Class<T> entityClass,
            JndiAddresses jndiAddresses);  }