RpcHost implements Cloneable, Serializable { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; RpcHost rpcHost = (RpcHost) o; if (port != rpcHost.port) return false; if (!lcHostname.equals(rpcHost.lcHostname)) return false; if (scheme != null ? !scheme.equals(rpcHost.scheme) : rpcHost.scheme != null) return false; return true; } RpcHost(final String hostname);  RpcHost(final String hostname, final int port);  RpcHost(final String hostname, final int port, final String scheme);  RpcHost(final RpcHost host); String getHostname(); int getPort(); String getScheme(); String toURI(); String toHostString(); String toString(); @Override boolean equals(Object o); @Override int hashCode(); Object clone();  }
@Test public void testEquals() { assertTrue(host.equals(new RpcHost("VHAISLBLL2.VHA.DOMAIN.EXT", 9060))); assertFalse(host.equals(new RpcHost("VHAISLBLL22.VHA.DOMAIN.EXT", 9060))); assertFalse(host.equals(new RpcHost("VHAISLBLL2.VHA.DOMAIN.EXT", 9063))); }