IndividualsDetector implements Detector { @Override public String getName() { return NAME; } IndividualsDetector(UUID uuid, IndividualsDetectorParams params, boolean trusted, String name); @Override DetectorResult detect(MetricData metricData); @Override String getName();  }
@Test public void testName() { val detectorUnderTest = buildDetector(buildParams(0)); assertNotNull(detectorUnderTest.getName()); Assert.assertEquals("test", detectorUnderTest.getName()); }