@Test
public void should_highlight_nothing_if_file_is_missing() throws Exception {

  File file = TestUtils.getResource("/org/sonar/plugins/groovy/foundation/Greet.groovy");
  SensorContextTester context = SensorContextTester.create(file.getParentFile());
  DefaultInputFile inputFile = new DefaultInputFile("", "Greet-fake.groovy")
    .setLanguage(Groovy.KEY)
    .setType(Type.MAIN);
  context.fileSystem().add(inputFile);
  GroovyHighlighterAndTokenizer highlighter = new GroovyHighlighterAndTokenizer(inputFile);
  context = Mockito.spy(context);
  highlighter.processFile(context);
  Mockito.verify(context, Mockito.never()).newHighlighting();
}