String factClass = "org.hornetq.core.remoting.impl.netty.NettyConnectorFactory";
TransportConfiguration transportConfig = new TransportConfiguration(factClass, null, "netty");
XARecoveryConfig config = new XARecoveryConfig(false, new TransportConfiguration[] {transportConfig},
null, null);
RecoveryDiscovery discovery1 = new RecoveryDiscovery(config);
RecoveryDiscovery discovery2 = new RecoveryDiscovery(config);
assertTrue(discoverySet.add(discovery1));
assertFalse(discoverySet.add(discovery2));
assertEquals("should have only one in the set", 1, discoverySet.size());
}