@Test
public void testCreateByteArrayFromIpAddressString() {

    for (Entry<String, String> e : validIpV4Hosts.entrySet()) {
        String ip = e.getKey();
        assertHexDumpEquals(e.getValue(), createByteArrayFromIpAddressString(ip), ip);
    }
    for (Entry<String, String> e : invalidIpV4Hosts.entrySet()) {
        String ip = e.getKey();
        assertHexDumpEquals(e.getValue(), createByteArrayFromIpAddressString(ip), ip);
    }
    for (Entry<String, String> e : validIpV6Hosts.entrySet()) {
        String ip = e.getKey();
        assertHexDumpEquals(e.getValue(), createByteArrayFromIpAddressString(ip), ip);
    }
    for (Entry<String, String> e : invalidIpV6Hosts.entrySet()) {
        String ip = e.getKey();
        assertHexDumpEquals(e.getValue(), createByteArrayFromIpAddressString(ip), ip);
    }
}