public class JPADataSourceConfigTest extends TestCase {
public void testTransactionalEMF() {
EntityManagerFactory emf = Persistence.createEntityManagerFactory(
JPATestCase.EntityManagerFactoryName.transactional_ds_non_transactional_ops_not_allowed.name());
JPAEntityManager em = (JPAEntityManager) emf.createEntityManager();
DatastoreManager storeMgr = (DatastoreManager) em.getExecutionContext().getStoreManager();
assertTrue(storeMgr.connectionFactoryIsAutoCreateTransaction());
em.close();
emf.close();
}