GlobalConfigurationBuilder globalConfiguration = GlobalConfigurationBuilder.defaultClusteredBuilder();
globalConfiguration.globalJmxStatistics().enable().mBeanServerLookup(new PerThreadMBeanServerLookup());
cm = TestCacheManagerFactory.createClusteredCacheManager(globalConfiguration, new ConfigurationBuilder());
String jmxDomain = cm.getCacheManagerConfiguration().globalJmxStatistics().domain();
ConfigurationBuilder localCache = config();//local by default
localCache.jmxStatistics().enable();
cm.defineConfiguration("local_cache", localCache.build());
cm.getCache("local_cache");
assert existsObject(getCacheObjectName(jmxDomain, "local_cache(local)", "Statistics"));
GlobalConfigurationBuilder globalConfiguration2 = GlobalConfigurationBuilder.defaultClusteredBuilder();