assertTrue(hosts.contains("slave"));
// check servers
assertTrue(checkHostServers(cli, "master", new String[] {"main-one", "main-two", "other-one", "reload-one"}));
assertTrue(checkHostServers(cli, "slave", new String[] {"main-three", "main-four", "other-two", "reload-two"}));
cli.quit();
}
private boolean checkHostServers(CLIWrapper cli, String host, String[] serverList) throws Exception {
cli.sendLine("/host=" + host + ":read-children-names(child-type=server-config)");