private static final String MY_CUSTOM_CACHE = "myCustomCache";
public static void main(String[] args) throws Exception {
GlobalConfigurationBuilder globalConfigurationBuilder = new GlobalConfigurationBuilder();
globalConfigurationBuilder.globalJmxStatistics().enable().jmxDomain("org.infinispan");
withCacheManager(new CacheManagerCallable(TestCacheManagerFactory.createCacheManager(globalConfigurationBuilder, new ConfigurationBuilder())) {
@Override
public void call() {
// org.infinispan:cache-name=myCustomcache(local),jmx-resource=CacheMgmgtInterceptor