### Question:
JPAContainerFactory { public static <T> JPAContainer<T> makeBatchable(Class<T> entityClass, EntityManager entityManager) { return makeWithEntityProvider(entityClass, new CachingBatchableLocalEntityProvider<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);  }### Answer:
@Test public void testCreateBatchableJPAContainer() { JPAContainer<Person> c = JPAContainerFactory.makeBatchable( Person.class, entityManager); assertEquals(CachingBatchableLocalEntityProvider.class, c.getEntityProvider() .getClass()); }
@Test public void testCreateBatchableJPAContainerWithPersistenceUnitName() { JPAContainer<Person> c = JPAContainerFactory.makeBatchable( Person.class, "eclipselink-in-memory"); assertEquals(CachingBatchableLocalEntityProvider.class, c.getEntityProvider() .getClass()); }