@Test
public void shouldManageClassesWithDefaultPackage() throws URISyntaxException {

  SensorContextTester context = SensorContextTester.create(new File(""));
  context.fileSystem().add(inputFile("NoPackagesTest"));
  surefireSensor.collect(context, new File(getClass().getResource(
    "/org/sonar/plugins/groovy/surefire/SurefireSensorTest/shouldManageClassesWithDefaultPackage/").toURI()));
  assertThat(context.measure(":NoPackagesTest", CoreMetrics.TESTS).value()).isEqualTo(2);
}