ConstantThresholdDetector extends AbstractOutlierDetector { @Override public String getName() { return NAME; } ConstantThresholdDetector(@NonNull UUID uuid, @NonNull ConstantThresholdDetectorParams params, boolean trusted); @Override DetectorResult detect(@NonNull MetricData metricData); @Override String getName();  }
@Test public void testName() { val detector = detector(detectorUuid, thresholds, AnomalyType.LEFT_TAILED, trusted); assertNotNull(detector.getName()); assertEquals("constant-threshold", detector.getName()); }