EntityManagerSourceImpl implements EntityManagerSource { @Override public EntityManager create(final String persistenceUnitName) { return getEntityManagerFactory(persistenceUnitName).createEntityManager(); } EntityManagerSourceImpl(Logger logger, @Symbol(JpaSymbols.PERSISTENCE_DESCRIPTOR)
    final Resource persistenceDescriptor, @Local
    PersistenceUnitConfigurer packageNamePersistenceUnitConfigurer,
                                   Map<String, PersistenceUnitConfigurer> configuration); @PostInjection void listenForShutdown(RegistryShutdownHub hub); @Override EntityManagerFactory getEntityManagerFactory(final String persistenceUnitName); @Override EntityManager create(final String persistenceUnitName); @Override List<PersistenceUnitInfo> getPersistenceUnitInfos();  }
@Test public void jpa2dot1Namespace() { create("single-persistence-unit-jpa-2.1.xml"); }