assertFalse(conn2.isHostMaster(thirdHost));
conn2.setReadOnly(false);
// failover to "second" as master, "first"
// can still be used:
conn2.promoteSlaveToMaster(secondHost);
assertTrue(conn2.isHostMaster(firstHost));
assertFalse(conn2.isHostSlave(firstHost));
assertFalse(conn2.isHostSlave(secondHost));
assertTrue(conn2.isHostMaster(secondHost));
assertTrue(conn2.isHostSlave(thirdHost));