Assert.assertFalse(_mbs.isRegistered(MBeans.getObjectName(app.getValidators().get(0))));
}
@Test
public void testComponentServiceMBeans() {
Application app = createApplication();
MBeans.registerApplication(app);
ComponentService cs = app.getComponentServices().get(0);
Assert.assertTrue(_mbs.isRegistered(MBeans.getObjectName(cs)));
Assert.assertTrue(_mbs.isRegistered(MBeans.getObjectName(cs, cs.getReferences().get(0))));
MBeans.unregisterApplication(app);
Assert.assertFalse(_mbs.isRegistered(MBeans.getObjectName(cs)));
Assert.assertFalse(_mbs.isRegistered(MBeans.getObjectName(cs, cs.getReferences().get(0))));