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

    val actualDetectors = serviceUnderTest.findByCreatedBy("invalidUserName");
    assertNotNull(actualDetectors);
}