@Test
public void test31BitPrefixIpRangesOverlapd() {

    final String gw = "192.168.0.0";
    String ip1;
    String ip2;
    for (int i = 1, j = 2; i <= 254; i++, j++) {
        ip1 = "192.168.0." + i;
        ip2 = "192.168.0." + j;
        final boolean doesOverlap = NetUtils.ipRangesOverlap(ip1, ip2, gw, gw);
        assertFalse("It should overlap, but it's a 31-bit ip", doesOverlap);
    }
}