@Test
public void testIp4SocketAddressToString() throws UnknownHostException {

    for (Entry<String, String> e : validIpV4Hosts.entrySet()) {
        assertEquals(e.getKey() + ":9999",
                toSocketAddressString(new InetSocketAddress(InetAddress.getByAddress(unhex(e.getValue())), 9999)));
    }
}