RpcHost implements Cloneable, Serializable { public String toHostString() { if (this.port != -1) { StringBuilder buffer = new StringBuilder(this.hostname.length() + 6); buffer.append(this.hostname); buffer.append(":"); buffer.append(Integer.toString(this.port)); return buffer.toString(); } else { return this.hostname; } } 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 testToHostString() { assertEquals("serverserv.vha.domain.ext:9060", host.toHostString()); }