protected EmbeddedCacheManager createCacheManager() throws Exception {
GlobalConfigurationBuilder gcb = new GlobalConfigurationBuilder();
gcb.globalJmxStatistics().jmxDomain(JMX_DOMAIN).mBeanServerLookup(new PerThreadMBeanServerLookup()).enable();
ConfigurationBuilder dcc = TestCacheManagerFactory.getDefaultCacheConfiguration(true);
dcc.transaction().autoCommit(false);
dcc.jmxStatistics().enable();
server = PerThreadMBeanServerLookup.getThreadMBeanServer();
return new DefaultCacheManager(gcb.build(), dcc.build());
}
public void testClear() throws Exception {