### Question:
StylelintReportSensor implements Sensor { @Override public void describe(SensorDescriptor descriptor) { descriptor .onlyOnLanguage(CssLanguage.KEY) .onlyWhenConfiguration(conf -> conf.hasKey(CssPlugin.STYLELINT_REPORT_PATHS)) .name("Import of stylelint issues"); } StylelintReportSensor(CheckFactory checkFactory); @Override void describe(SensorDescriptor descriptor); @Override void execute(SensorContext context); static ExternalRuleLoader getStylelintRuleLoader(); static final String STYLELINT; }### Answer:
@Test public void test_descriptor() throws Exception { DefaultSensorDescriptor sensorDescriptor = new DefaultSensorDescriptor(); stylelintReportSensor.describe(sensorDescriptor); assertThat(sensorDescriptor.name()).isEqualTo("Import of stylelint issues"); assertThat(sensorDescriptor.languages()).containsOnly(CssLanguage.KEY); }