protected ReplicationConnection getUnreliableReplicationConnection(String[] hostNames,
Properties props, Set<String> downedHosts) throws Exception {
if(props == null){
props = new Properties();
}
NonRegisteringDriver d = new NonRegisteringDriver();
this.copyBasePropertiesIntoProps(props, d);
props.setProperty("socketFactory", "testsuite.UnreliableSocketFactory");
Properties parsed = d.parseURL(BaseTestCase.dbUrl, props);
String db = parsed.getProperty(NonRegisteringDriver.DBNAME_PROPERTY_KEY);
String port = parsed.getProperty(NonRegisteringDriver.PORT_PROPERTY_KEY);
String host = getPortFreeHostname(props, d);
UnreliableSocketFactory.flushAllHostLists();
StringBuffer hostString = new StringBuffer();