CacheManager cacheManager2 = TestCacheManagerFactory.createClusteredCacheManager();
registerCacheManager(cacheManager1, cacheManager2);
Configuration config1 = getDefaultClusteredConfig(Configuration.CacheMode.INVALIDATION_SYNC);
ClusterCacheLoaderConfig clusterClc = new ClusterCacheLoaderConfig();
CacheLoaderManagerConfig clMngrConfig = new CacheLoaderManagerConfig();
clMngrConfig.addCacheLoaderConfig(clusterClc);
config1.setCacheLoaderManagerConfig(clMngrConfig);
Configuration config2 = getDefaultClusteredConfig(Configuration.CacheMode.INVALIDATION_SYNC);
CacheLoaderManagerConfig clMngrConfig2 = clMngrConfig.clone();//this also includes the clustered CL
clMngrConfig2.addCacheLoaderConfig(new DummyInMemoryCacheStore.Cfg());
assert clMngrConfig2.getCacheLoaderConfigs().size() == 2;
config2.setCacheLoaderManagerConfig(clMngrConfig2);
cacheManager1.defineCache("clusteredCl", config1);
cacheManager2.defineCache("clusteredCl", config2);