### Question:
GoCoverSensor implements Sensor { @Override public void describe(SensorDescriptor descriptor) { descriptor .onlyWhenConfiguration(conf -> conf.hasKey(REPORT_PATH_KEY)) .name("Go Cover sensor for Go coverage"); }  @Override void describe(SensorDescriptor descriptor); @Override void execute(SensorContext context); static final String REPORT_PATH_KEY; }### Answer:
@Test public void test_descriptor() { DefaultSensorDescriptor sensorDescriptor = new DefaultSensorDescriptor(); GoCoverSensor coverSensor = new GoCoverSensor(); coverSensor.describe(sensorDescriptor); assertThat(sensorDescriptor.name()).isEqualTo("Go Cover sensor for Go coverage"); }