@Test
public void noDevicesAreCleanedWhenTheNetworkAddressIsNotUsed() throws Exception {

    this.withConfigurationNotAllowingDuplicates();
    this.withHostAndInetAddress(IP_ADDRESS);
    this.theNetworkAddressIsNotUsed(this.inetAddress);
    this.deviceNetworkAddressCleanupService.clearDuplicateAddresses(DEVICE_IDENTIFICATION, this.host);
    verify(this.deviceRepository, times(1)).findByNetworkAddress(this.inetAddress);
    verify(this.deviceRepository, never()).save(any(Device.class));
}