@Test
public void test_ip2ByteArray() throws Exception {

    assertArrayEquals(new byte[]{10, 1, 1, 1},
            IpParserUtil.ip2ByteArray("10.1.1.1"));
    assertArrayEquals(new byte[]{(byte) 192, (byte) 168, (byte) 0, 13},
            IpParserUtil.ip2ByteArray("192.168.0.13"));
    assertArrayEquals(new byte[]{10, (byte) 192, (byte) 255, 0},
            IpParserUtil.ip2ByteArray("10.192.255.0"));
    final String ip = "2404:6800:4005:80a:0:0:0:200e";
    final byte[] bytes = IpParserUtil.ip2ByteArray(ip);
    assertArrayEquals(getInetAddressByGetAllByName(ip).getAddress(), bytes);
}