protected EmbeddedCacheManager createCacheManager() throws Exception {
ConfigurationBuilder builder = getDefaultClusteredCacheConfig(cacheMode, true);
builder.customInterceptors().addInterceptor()
.before(TxInterceptor.class)
.interceptor(new CacheUsageInterceptor());
builder.versioning().enabled(true).scheme(VersioningScheme.SIMPLE);
builder.transaction().syncCommitPhase(true).syncRollbackPhase(true);
builder.locking().isolationLevel(IsolationLevel.REPEATABLE_READ).writeSkewCheck(true).lockAcquisitionTimeout(100);
return TestCacheManagerFactory.createCacheManager(builder);
}