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

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