### Question:
IPv4Cidrs { public boolean contains(String ip) throws IPStringConversionException, IpTypeMissMatchException { for(IPv4Cidr cidr : cidrs){ if(cidr.contains(ip)) { return true; } } return false; } IPv4Cidrs(); List<IPv4Cidr> getCidrs(); void setCidrs(List<IPv4Cidr> cidrs); boolean contains(String ip); List<String> getCidrsContainingIp(String ip);  }### Answer:
@Test public void shouldContainAddress() throws IPException { for (String ip : expectedAddresses) { assertTrue(ipv4Cidrs.contains(ip)); } }
@Test public void shouldNotContainAddress() throws IPException{ for(String ip : unexpectedAddresses) { assertFalse(ipv4Cidrs.contains(ip)); } }