@Override
  public void execute(SensorContext context) {
    FilePredicates p = context.fileSystem().predicates();
    for (InputFile file : context.fileSystem().inputFiles(p.and(p.hasLanguages(Xoo.KEY), p.hasType(Type.MAIN)))) {
      tokenize(file, context);
    }
  }
@Test
  public void testExecution() throws IOException {
    String content = "public class Foo {\n\n}";

    createSourceFile(content);

    sensor.execute(context);

    assertThat(context.cpdTokens("foo:src/foo.xoo")).extracting("value", "startLine", "startUnit", "endUnit")
      .containsExactly(
        tuple("publicclassFoo{", 1, 1, 4),
        tuple("}", 3, 5, 5));
  }