InfinispanRegionFactory regionFactory = CacheTestUtil.startRegionFactory(
ServiceRegistryBuilder.buildServiceRegistry( cfg.getProperties() ),
cfg,
getCacheTestSupport()
);
TransactionalDataRegion region = (TransactionalDataRegion) createRegion(
regionFactory, "test/test", cfg.getProperties(), getCacheDataDescription()
);
assertTrue( "Region is transaction-aware", region.isTransactionAware() );
CacheTestUtil.stopRegionFactory( regionFactory, getCacheTestSupport() );
// cfg = CacheTestUtil.buildConfiguration( "test", InfinispanRegionFactory.class, true, false );
// // Make it non-transactional
// cfg.getProperties().remove( AvailableSettings.JTA_PLATFORM );
// regionFactory = CacheTestUtil.startRegionFactory(