@Test
public void analyzing_a_deleted_file_should_fail() throws Exception {

  File report = testFolder.newFile("jacoco.exec");
  FileUtils.copyFile(TestUtils.getResource("/org/sonar/plugins/groovy/jacoco/JaCoCo_incompatible_merge/jacoco-0.7.5.exec"), report);
  JaCoCoReportReader jacocoReportReader = new JaCoCoReportReader(report);
  expectedException.expect(IllegalArgumentException.class);
  if (!report.delete()) {
    Fail.fail("report was not deleted, unable to complete test.");
  }
  ExecutionDataVisitor edv = new ExecutionDataVisitor();
  jacocoReportReader.readJacocoReport(edv, edv);
}