@Test
public void testFindByCreatedBy() {

    when(detectorService.findByCreatedBy(anyString())).thenReturn(detectors);
    val actualDetectors = controllerUnderTest.findByCreatedBy("kashah");
    assertNotNull(actualDetectors);
}