public void testRecoveryDiscoveryAsKey() throws Exception
{
Set<RecoveryDiscovery> discoverySet = new HashSet<RecoveryDiscovery>();
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));