protected void createCacheManagers() throws Throwable {
ConfigurationBuilder builder = getDefaultClusteredCacheConfig(CacheMode.REPL_SYNC, true);
builder
.locking().writeSkewCheck(true).isolationLevel(IsolationLevel.REPEATABLE_READ)
.versioning().enable().scheme(VersioningScheme.SIMPLE)
.loaders().addStore().cacheStore(new CountingCacheStore())
.loaders().addStore().cacheStore(new DummyInMemoryCacheStore())
.transaction().syncCommitPhase(true)
.clustering().hash().numSegments(2);
createClusteredCaches(2, "replication", builder);
}