@Test
public void testUpdateDetector() {

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