### Question:
SlangSensor implements Sensor { @Override public void describe(SensorDescriptor descriptor) { descriptor .onlyOnLanguage(language.getKey()) .name(language.getName() + " Sensor"); } SlangSensor(NoSonarFilter noSonarFilter, FileLinesContextFactory fileLinesContextFactory, Language language); @Override void describe(SensorDescriptor descriptor); @Override void execute(SensorContext sensorContext);  }### Answer:
@Test public void test_descriptor() { DefaultSensorDescriptor sensorDescriptor = new DefaultSensorDescriptor(); SlangSensor sensor = sensor(mock(CheckFactory.class)); sensor.describe(sensorDescriptor); assertThat(sensorDescriptor.languages()).hasSize(1); assertThat(sensorDescriptor.languages()).containsExactly("slang"); assertThat(sensorDescriptor.name()).isEqualTo("SLang Sensor"); }