@Test(expected = IllegalArgumentException.class)
public void test_FindByCreatedBy_illegal_args() {

    when(detectorRepo.findByCreatedBy(anyString())).thenReturn(null);
    controllerUnderTest.findByCreatedBy("kashah");
}