cli.sendLine("version", false);
line = cli.readLine(WAIT_TIMEOUT);
assertTrue("Connect failed:" + line, line.indexOf("[domain@") >= 0);
// check hosts
cli.sendLine(":read-children-names(child-type=host)");
CLIOpResult res = cli.readAllAsOpResult(WAIT_TIMEOUT, WAIT_LINETIMEOUT);
assertTrue(res.getResult() instanceof List);
List hosts = (List) res.getResult();
assertTrue(hosts.contains("master"));