@Test
public void testIsSameIpRange() {

    final String cidrFirst = "10.0.144.0/20";
    final String cidrSecond = "10.0.151.0/20";
    final String cidrThird = "10.0.144.0/21";
    //Check for exactly same CIDRs
    assertTrue(NetUtils.isSameIpRange(cidrFirst, cidrFirst));
    //Check for 2 different CIDRs, but same IP Range
    assertTrue(NetUtils.isSameIpRange(cidrFirst, cidrSecond));
    //Check for 2 different CIDRs and different IP Range
    assertFalse(NetUtils.isSameIpRange(cidrFirst, cidrThird));
    //Check for Incorrect format of CIDR
    assertFalse(NetUtils.isSameIpRange(cidrFirst, "10.3.6.5/50"));
}