@Test
public void should_generate_correct_predicate() throws URISyntaxException {

  DefaultFileSystem fs = new DefaultFileSystem(new File("."));
  DefaultInputFile inputFile = new DefaultInputFile("", "src/test/org/sonar/JavaNCSSCollectorTest.groovy")
    .setLanguage(Groovy.KEY)
    .setType(Type.TEST);
  fs.add(inputFile);
  parser = new GroovySurefireParser(groovy, perspectives, fs);
  SensorContextTester context = SensorContextTester.create(new File(""));
  context.setFileSystem(fs);
  parser.collect(context, getDir("onlyTestSuiteReport"));
  assertThat(context.measure(":src/test/org/sonar/JavaNCSSCollectorTest.groovy", CoreMetrics.TESTS).value()).isEqualTo(11);
}