@Test
public void noDevicesAreCleanedWhenTheNetworkAddressIsPartOfARangeAllowingDuplicates() throws Exception {

    final String ipAddress = "172.16.138.27";
    this.withHostAndInetAddress(ipAddress);
    final String rangeContainingIpAddress = "172.16.130.0-172.16.139.255";
    this.withConfigurationAllowingDuplicatesFor("10.1.1.111", rangeContainingIpAddress,
            "192.168.0.0-192.168.255.255");
    this.deviceNetworkAddressCleanupService.clearDuplicateAddresses(DEVICE_IDENTIFICATION, this.host);
    verify(this.deviceRepository, never()).findByNetworkAddress(this.inetAddress);
    verify(this.deviceRepository, never()).save(any(Device.class));
}