  @Test
  public void should_not_execute_test_on_corrupted_file_and_should_not_raise_parsing_issue() throws Exception {

    init(false);
    fs.add(createInputFile("src/wrong-ampersand.xhtml"));

    sensor.execute(context);

    assertThat(context.allIssues()).isEmpty();

    assertLog("Unable to analyse file .*wrong-ampersand.*", true);
    assertLog("Cause: org.xml.sax.SAXParseException.* Element type \"as\\.length\" must be followed by either attribute specifications, .*", true);
  }