//now register a global one
GlobalConfigurationBuilder globalConfiguration2 = GlobalConfigurationBuilder.defaultClusteredBuilder();
globalConfiguration2.globalJmxStatistics().enable().mBeanServerLookup(new PerThreadMBeanServerLookup()).allowDuplicateDomains(true);
cm2 = TestCacheManagerFactory.createClusteredCacheManager(globalConfiguration2, new ConfigurationBuilder());
ConfigurationBuilder remoteCache = new ConfigurationBuilder();
remoteCache.jmxStatistics().enable();
remoteCache.clustering().cacheMode(CacheMode.REPL_SYNC);
cm2.defineConfiguration("remote_cache", remoteCache.build());
cm2.getCache("remote_cache");
String jmxDomain2 = cm2.getCacheManagerConfiguration().globalJmxStatistics().domain();
assert existsObject(getCacheObjectName(jmxDomain2, "remote_cache(repl_sync)", "Cache"));