CusumDetector extends AbstractOutlierDetector { @Override public String getName() { return NAME; } CusumDetector(UUID uuid, CusumDetectorParams params, boolean trusted); @Override DetectorResult detect(MetricData metricData); @Override String getName();  }
@Test public void testName() { val anomalyType = AnomalyType.TWO_TAILED; val trusted = true; val params = new CusumDetectorParams() .setType(anomalyType) .setTargetValue(1000.0) .setWeakSigmas(WEAK_SIGMAS) .setStrongSigmas(STRONG_SIGMAS) .setSlackParam(0.5) .setInitMeanEstimate(1000.0) .setWarmUpPeriod(5); val detector = new CusumDetector(detectorUuid, params, trusted); Assert.assertNotNull(detector.getName()); Assert.assertEquals("cusum", detector.getName()); }