@Test(expected = DetectorException.class)
public void testCreateDetectorNullValues() {

    val detector1 = new DetectorDocument();
    detector1.setCreatedBy("user");
    repoUnderTest.createDetector(detector1);
}