@Test
public void shouldAnalyzeExternalResourceAndReturnWarnings() throws Exception {

  String[] files = { "file" };
  Detector detector = Helper.dummyDetector();
  Issue[] issues = { Helper.dummyIssue() };
  Lint lint = new Lint(detector, issues);
  List<Warning> warnings = lint.files(files);
  assertThat(warnings).isEqualTo(Helper.dummyWarnings());
}