@Test
public void testMatchIpRangeMatchWhenIpv4() throws UnknownHostException {

    assertTrue(NetUtils.matchIpRange("*.*.*.*", "192.168.1.63", 90));
    assertTrue(NetUtils.matchIpRange("192.168.1.*", "192.168.1.63", 90));
    assertTrue(NetUtils.matchIpRange("192.168.1.63", "192.168.1.63", 90));
    assertTrue(NetUtils.matchIpRange("192.168.1.1-65", "192.168.1.63", 90));
    assertFalse(NetUtils.matchIpRange("192.168.1.1-61", "192.168.1.63", 90));
    assertFalse(NetUtils.matchIpRange("192.168.1.62", "192.168.1.63", 90));
}