@Test(expected = RuntimeException.class)
public void testBuildDetector_invalidParams() {

    val factory = new ConstantThresholdDetectorFactoryProvider();
    val document = readDocument("constant-threshold-invalid-params");
    factory.buildDetector(document);
}