### Question:
ScoverageSensor implements Sensor { @Override public void describe(SensorDescriptor descriptor) { descriptor .onlyWhenConfiguration(conf -> conf.hasKey(COVERAGE_REPORT_PATHS_KEY)) .name("Scoverage sensor for Scala coverage"); }  @Override void describe(SensorDescriptor descriptor); @Override void execute(SensorContext context);  }### Answer:
@Test public void test_descriptor() { DefaultSensorDescriptor sensorDescriptor = new DefaultSensorDescriptor(); scoverageSensor.describe(sensorDescriptor); assertThat(sensorDescriptor.name()).isEqualTo("Scoverage sensor for Scala coverage"); }