cfg.setProperty(getConfigResourceKey(), getConfigResourceLocation());
Settings settings = cfg.buildSettings();
Fqn<String> fqn = Fqn.fromString("/whatever");
JBossCacheRegionFactory regionFactory = (JBossCacheRegionFactory) settings.getRegionFactory();
regionFactory.start(settings, cfg.getProperties());
// Make sure we clean up when done
testSupport.registerFactory(regionFactory);
Cache<Object, Object> treeCache = regionFactory.getCacheInstanceManager().getEntityCacheInstance();
// Make sure this is an OPTIMISTIC cache
assertEquals("Cache is OPTIMISTIC", "OPTIMISTIC", treeCache.getConfiguration().getNodeLockingSchemeString());
Long long1 = new Long(1);