@Test
public void testBuildDetectorWithFilters() {

    val factoryUnderTest = new ConstantThresholdDetectorFactoryProvider();
    val document = readDocument("constant-threshold-9amTo5pm-filter");
    val detector = factoryUnderTest.buildDetector(document);
    assertNotNull(detector);
    assertSame(ConstantThresholdDetector.class, detector.getClass());
    assertEquals("42d242d2-42d2-42d2-42d2-42d242d242d2", detector.getUuid().toString());
}