@Test
public void testTrustDetector() {

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