@Test
public void testFindDetector_nullDetectorBuilt() {

    when(detectorClient.findDetectorDocument(DETECTOR_UUID)).thenReturn(detectorDocument);
    when(detectorFactory.buildDetector(detectorDocument)).thenReturn(null);
    DetectorContainer detector = sourceUnderTest.findDetector(DETECTOR_UUID);
    assertNull(detector);
}