@Test
public void testIp6InetSocketAddressToString() throws UnknownHostException {

    for (Entry<byte[], String> testEntry : ipv6ToAddressStrings.entrySet()) {
        assertEquals('[' + testEntry.getValue() + "]:9999",
                toSocketAddressString(new InetSocketAddress(InetAddress.getByAddress(testEntry.getKey()), 9999)));
    }
}