protected abstract String getJoiningNodeConfig();
protected Cache<String, String> getReplicatedCache(EmbeddedCacheManager manager) throws Exception {
ConfigurationBuilder cacheConfig = new ConfigurationBuilder();
cacheConfig.transaction().lockingMode(LockingMode.PESSIMISTIC);
cacheConfig.invocationBatching().enable();
cacheConfig.jmxStatistics().disable();
cacheConfig.clustering().cacheMode(CacheMode.REPL_SYNC);
manager.defineConfiguration(CACHE_NAME, cacheConfig.build());
Cache<String, String> replicatedCache = manager.getCache(CACHE_NAME);