source: class CoberturaSensorTest {
  
    private Settings settings;
    private CoberturaSensor sensor;
    private DefaultFileSystem fileSystem;
  
    @Test
    public void should_use_relative_path_to_get_report() {
  
target:     Settings settings = new Settings();
      settings.setProperty(GroovyPlugin.COBERTURA_REPORT_PATH, "//org/sonar/plugins/groovy/cobertura/fake-coverage.xml");
  
      DefaultFileSystem fileSystem = new DefaultFileSystem(new File("."));
      fileSystem.add(new DefaultInputFile("", "fake.groovy").setLanguage(Groovy.KEY));
  
      sensor = new CoberturaSensor(settings, fileSystem);
  
      SensorContext context = mock(SensorContext.class);
      sensor.execute(context);
  
      Mockito.verify(context, Mockito.never()).newCoverage();
    }
  
  }