@Test
public void testMatchIpRangeMatchWhenIpv6Exception() throws UnknownHostException {

    IllegalArgumentException thrown =
            assertThrows(IllegalArgumentException.class, () ->
                    NetUtils.matchIpRange("234e:0:4567::3d:*", "234e:0:4567::3d:ff", 90));
    assertTrue(thrown.getMessage().contains("If you config ip expression that contains '*'"));
    thrown = assertThrows(IllegalArgumentException.class, () ->
            NetUtils.matchIpRange("234e:0:4567:3d", "234e:0:4567::3d:ff", 90));
    assertTrue(thrown.getMessage().contains("The host is ipv6, but the pattern is not ipv6 pattern"));
    thrown =
            assertThrows(IllegalArgumentException.class, () ->
                    NetUtils.matchIpRange("192.168.1.1-65-3", "192.168.1.63", 90));
    assertTrue(thrown.getMessage().contains("There is wrong format of ip Address"));
}