public static int ipToInt(String ip) {
        try {
            return bytesToInt(ipToBytesByInet(ip));
        } catch (Exception e) {
            throw new IllegalArgumentException(ip + " is invalid IP");
        }
    }
@Test
    void testIllegalIpToInt() {
        assertThrows(IllegalArgumentException.class, () -> {
            InternetAddressUtil.ipToInt("127.0.0.256");
        });
    }