Member implements Comparable<Member> { @Override public int hashCode() { final int prime = 31; int result = 1; String address = computeAddress(); result = prime * result + ((address == null) ? 0 : address.hashCode()) + (clusterName == null ? 0 : clusterName.hashCode()); return result; } Member(String clusterName, URI uri, String id, long heartbeat, Map<String,String> properties); protected  Member(); String getClusterName(); String computeAddress(); long getHeartbeat(); void setHeartbeat(long heartbeat); String getId(); void setId(String _id); Map<String, String> getProperties(); void setProperties(Map<String, String> properties); String toString(); @Override int hashCode(); URI getUri(); @Override boolean equals(Object obj); int compareTo(Member other);  }
@Test public void testHashCodeFromGossip40() throws URISyntaxException { Assert.assertNotEquals( new LocalMember("mycluster", new URI("udp: .hashCode(), new LocalMember("mycluster", new URI("udp: .hashCode()); }