EmbeddedCacheManager cm1, cm2;
@Override
protected void createCacheManagers() throws Throwable {
Configuration cfg = getDefaultClusteredConfig(Configuration.CacheMode.REPL_SYNC, true);
cfg.fluent().transaction().lockingMode(LockingMode.PESSIMISTIC).cacheStopTimeout(0);
cfg.setLockAcquisitionTimeout(100);
cm1 = TestCacheManagerFactory.createClusteredCacheManager(cfg);
cm2 = TestCacheManagerFactory.createClusteredCacheManager(cfg);
registerCacheManager(cm1, cm2);