@Test
public void testToggleDetector() {

    serviceUnderTest.toggleDetector(someUuid.toString(), true);
    verify(repository, times(1)).findByUuid(someUuid.toString());
    verify(repository, times(1)).save(legalParamsDetector);
}