regManager.registerAllMBeans();
String name = regManager.getObjectName(CacheMgmtInterceptor.class.getSimpleName());
assert mBeanServer.isRegistered(new ObjectName(name));
regManager.unregisterAllMBeans();
assert !mBeanServer.isRegistered(new ObjectName(name));
cache.stop();
}
public void testRegisterReplicatedCache() throws Exception
{
Configuration localConfig = UnitTestCacheConfigurationFactory.createConfiguration(Configuration.CacheMode.REPL_SYNC);