ServicePoint sp1 = ((MBeanRegistrationContribution) mBeanList.get(0)).getServicePoint();
ObjectName on1 = objectNameBuilder.createServiceObjectName(sp1);
// Training
server.registerMBean(null, null);
serverControl.setThrowable(new MBeanRegistrationException(new Exception(
"Registration failed")));
serverControl.setDefaultMatcher(new AlwaysMatcher());
server.registerMBean(null, null);
serverControl.setThrowable(new MBeanRegistrationException(new Exception(
"Registration failed")));
server.registerMBean(null, null);
serverControl.setThrowable(new MBeanRegistrationException(new Exception(
"Registration failed")));
replayControls();
interceptLogging(MBeanRegistry.class.getName());