return true;
}
}, timeout);
master = (FabricDiscoveryAgent.ActiveMQNode) group.master();
String masterContainer = master.getContainer();
<BUG>assertEquals("node1", masterContainer);

for (int i = 0; i < 5; i++) {</BUG>
Thread.sleep(5000);
<BUG>executeCommandAsAdmin("container-remove-profile node1 jboss-fuse-full");
Provision.provisioningSuccess(Arrays.asList(fabricService.getContainers()), PROVISION_TIMEOUT);</BUG>
Provision.waitForCondition(new Callable<Boolean>() {

return true;
}
}, timeout);
master = (FabricDiscoveryAgent.ActiveMQNode) group.master();
String masterContainer = master.getContainer();
assertEquals("root", masterContainer);
assertTrue(getSlaveNames(group).contains("node"));
for (int i = 0; i < 5; i++) {
Thread.sleep(5000);
executeCommandAsAdmin("container-remove-profile node jboss-fuse-full");
Provision.provisioningSuccess(Arrays.asList(fabricService.getContainers()), PROVISION_TIMEOUT);
Provision.waitForCondition(new Callable<Boolean>() {
