globalConfiguration.setExposeGlobalJmxStatistics(true);
cacheManager = TestCacheManagerFactory.createCacheManagerEnforceJmxDomain(globalConfiguration);
DummyInMemoryCacheStore.Cfg cfg = new DummyInMemoryCacheStore.Cfg();
CacheLoaderManagerConfig clManagerConfig = new CacheLoaderManagerConfig();
clManagerConfig.setPassivation(false);
clManagerConfig.addCacheLoaderConfig(cfg);
Configuration configuration = getDefaultClusteredConfig(Configuration.CacheMode.LOCAL);
configuration.setExposeJmxStatistics(true);
configuration.setCacheLoaderManagerConfig(clManagerConfig);
cacheManager.defineConfiguration("test", configuration);