for (ClusterDistributedController controller : _controllers) {
if (controller.getInstanceName().equals(firstControllerName)) {
firstController = controller;
}
}
firstController.disconnect();
Thread.sleep(1000);
// 1 cluster status monitor, 1 resource monitor, 5 instances
Assert.assertTrue(nMbeansUnregistered == listener._nMbeansUnregistered - 7);
Assert.assertTrue(nMbeansRegistered == listener._nMbeansRegistered - 7);