GroovySensor implements Sensor { @Override public String toString() { return getClass().getSimpleName(); } GroovySensor(Settings settings, FileLinesContextFactory fileLinesContextFactory, FileSystem fileSystem); @Override void describe(SensorDescriptor descriptor); @Override void execute(SensorContext context); @Override String toString();  }
@Test public void test_toString() { assertThat(sensor.toString()).isEqualTo("GroovySensor"); }