@Test
public void testTrustDetector() {

    LegacyDetectorRepository legacyDetectorRepository = mock(LegacyDetectorRepository.class);
    doNothing().when(legacyDetectorRepository).trustDetector(anyString(), anyBoolean());
    legacyDetectorRepository.trustDetector("aeb4d849-847a-45c0-8312-dc0fcf22b639", true);
    verify(legacyDetectorRepository, times(1)).trustDetector("aeb4d849-847a-45c0-8312-dc0fcf22b639", true);
}