@Test
public void testUpdateDetector() {

    LegacyDetectorRepository legacyDetectorRepository = mock(LegacyDetectorRepository.class);
    doNothing().when(legacyDetectorRepository).updateDetector(anyString(), any(DetectorDocument.class));
    legacyDetectorRepository.updateDetector("aeb4d849-847a-45c0-8312-dc0fcf22b639", new DetectorDocument());
    verify(legacyDetectorRepository, times(1)).updateDetector("aeb4d849-847a-45c0-8312-dc0fcf22b639", new DetectorDocument());
}