CacheManager cm = TestCacheManagerFactory.createLocalCacheManager();
Configuration c = new Configuration();
c.setFetchInMemoryState(false);
c.setInvocationBatchingEnabled(true);
c.setLockAcquisitionTimeout(1000);
cm.defineCache("test", c);
cache = cm.getCache("test");
tm = TestingUtil.extractComponent(cache, TransactionManager.class);
treeCache = new TreeCacheImpl(cache);
dc = TestingUtil.extractComponent(cache, DataContainer.class);
return cm;