@Test
public void isValidCIDRTest() {

    NeutronSubnet objectUT = new NeutronSubnet();
    objectUT.setIpVersion(4);
    objectUT.setCidr("10.18.0.0/24");
    Assert.assertTrue("isValidCIDR Test 1: Testing valid CIDR (10.18.0.0/24) failed", objectUT.isValidCIDR());
    objectUT.setCidr("10.18.0.0/16");
    Assert.assertTrue("isValidCIDR Test 2: Testing valid CIDR (10.18.0.0/16) failed", objectUT.isValidCIDR());
    objectUT.setCidr("10.18.0.0/8");
    Assert.assertFalse("isValidCIDR Negative Test 1: Testing invalid CIDR (10.18.0.0/8) failed",
            objectUT.isValidCIDR());
    objectUT.setIpVersion(6);
    objectUT.setCidr("2015:0:0:0:0:0:0:0/24");
    Assert.assertTrue("isValidCIDR Test 1: Testing valid V6 CIDR (2015:0:0:0:0:0:0:0/24) failed",
            objectUT.isValidCIDR());
    objectUT.setCidr("2015:0:0:0:0:0:0:1/24");
    Assert.assertFalse("isValidCIDR Negative Test 1: Testing invalid CIDR (2015:0:0:0:0:0:0:1) failed",
            objectUT.isValidCIDR());
}