cli.sendConnect(DomainTestSupport.masterAddress);
line = cli.readLine(WAIT_TIMEOUT);
assertTrue("Check we are disconnected:" + line, line.indexOf("disconnected") >= 0);
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);