### Question:
DetektSensor implements Sensor { @Override public void describe(SensorDescriptor descriptor) { descriptor .onlyOnLanguage(KotlinPlugin.KOTLIN_LANGUAGE_KEY) .onlyWhenConfiguration(conf -> conf.hasKey(REPORT_PROPERTY_KEY)) .name("Import of detekt issues"); }  @Override void describe(SensorDescriptor descriptor); @Override void execute(SensorContext context); static final String REPORT_PROPERTY_KEY; }### Answer:
@Test public void test_descriptor() { DefaultSensorDescriptor sensorDescriptor = new DefaultSensorDescriptor(); detektSensor.describe(sensorDescriptor); assertThat(sensorDescriptor.name()).isEqualTo("Import of detekt issues"); assertThat(sensorDescriptor.languages()).containsOnly("kotlin"); assertNoErrorWarnDebugLogs(logTester); }