.getUnreliableReplicationConnection(new String[] { "first",
"second", "third" }, props, downedHosts);
assertTrue(conn2.isReadOnly());
assertFalse(conn2.isMasterConnection());
try {
conn2.createStatement().execute("SELECT 1");
} catch (SQLException e) {
fail("Should not fail to execute SELECT statements!");
}
UnreliableSocketFactory.flushAllHostLists();
conn2.setReadOnly(false);