}
protected void collect(final SensorContext context, File reportsDir) {
LOG.info("Parsing Unit Test run results in Surefire format from folder {}", reportsDir);
new AbstractSurefireParser() {
@Override
protected Resource<?> getUnitTestResource(String classKey) {
File unitTestFile = getUnitTestFile(fileSystem.testDirs(), getUnitTestFileName(classKey));
return context.getResource(new org.sonar.api.resources.File(unitTestFile.getParent(), unitTestFile.getName()));