@Test
public void isValidIpTest() {

    NeutronSubnet objectUT = new NeutronSubnet();
    objectUT.setIpVersion(4);
    objectUT.setCidr("10.18.0.0/24");
    Assert.assertFalse("isValidIp Negative Test 1: test of IP address outside of CIDR block failed",
            objectUT.isValidIp("10.18.1.1"));
    Assert.assertTrue("isValidIp Test 1: test of IP address within CIDR block failed",
            objectUT.isValidIp("10.18.0.1"));
    objectUT.setIpVersion(6);
    objectUT.setCidr("2015::0/64");
    Assert.assertFalse("isValidIp v6 Negative Test 1: test of IP address outside of CIDR block failed",
            objectUT.isValidIp("2015:0:0:1:0:0:0:1"));
    Assert.assertTrue("isValidIp v6 Test 1: test of IP address within CIDR block failed",
            objectUT.isValidIp("2015:0:0:0:1:0:0:1"));
}