@Test
public void test_ip2ByteArray_ipv6_exception() throws Exception {

    // ipv6 with char
    try {
        IpParserUtil.ip2ByteArray("2404:6800:4005:80a:0:0:0:200z");
        fail();
    } catch (IllegalArgumentException expected) {
        expected.printStackTrace();
    }
    
    // ipv6 minus
    try {
        IpParserUtil.ip2ByteArray("-2404:6800:4005:80a:0:0:0:200e");
        fail();
    } catch (IllegalArgumentException expected) {
        expected.printStackTrace();
    }
    // ipv6 too long
    try {
        IpParserUtil.ip2ByteArray("2404:6800:4005:80a:0:0:0:200:123");
        fail();
    } catch (IllegalArgumentException expected) {
        expected.printStackTrace();
    }
}