@Test
public void testDeleteDetector() {

    val detectorRepository = mock(LegacyDetectorRepository.class);
    doNothing().when(detectorRepository).deleteDetector(anyString());
    detectorRepository.deleteDetector("aeb4d849-847a-45c0-8312-dc0fcf22b639");
    verify(detectorRepository, times(1)).deleteDetector("aeb4d849-847a-45c0-8312-dc0fcf22b639");
}