@Test
  public void detected() throws Exception {
    WebSourceCode sourceCode =
        TestHelper.scan(
            new File("src/test/resources/checks/ImgWithoutAltCheck.html"),
            new ImgWithoutAltCheck());

    checkMessagesVerifier
        .verify(sourceCode.getIssues())
        .next()
        .atLine(1)
        .withMessage("Add an \"alt\" attribute to this image.")
        .next()
        .atLine(5);
  }
  @Test
  public void detected() throws Exception {
    WebSourceCode sourceCode =
        TestHelper.scan(
            new File("src/test/resources/checks/BoldAndItalicTagsCheck.html"),
            new BoldAndItalicTagsCheck());

    checkMessagesVerifier
        .verify(sourceCode.getIssues())
        .next()
        .atLine(1)
        .withMessage("Replace this <b> tag by <strong>.")
        .next()
        .atLine(5)
        .withMessage("Replace this <i> tag by <em>.")
        .next()
        .atLine(7)
        .withMessage("Replace this <B> tag by <strong>.");
  }
  @Test
  public void detected() throws Exception {
    WebSourceCode sourceCode =
        TestHelper.scan(
            new File("src/test/resources/checks/LinkToNothingCheck.html"),
            new LinkToNothingCheck());

    checkMessagesVerifier
        .verify(sourceCode.getIssues())
        .next()
        .atLine(3)
        .withMessage("Give this link a valid reference or remove the reference.")
        .next()
        .atLine(4)
        .next()
        .atLine(5)
        .next()
        .atLine(6);
  }
  @Test
  public void detected() throws Exception {
    WebSourceCode sourceCode =
        TestHelper.scan(
            new File("src/test/resources/checks/WmodeIsWindowCheck.html"),
            new WmodeIsWindowCheck());

    checkMessagesVerifier
        .verify(sourceCode.getViolations())
        .next()
        .atLine(9)
        .withMessage("Set the value of the 'wmode' parameter to 'window'.")
        .next()
        .atLine(14)
        .next()
        .atLine(19)
        .next()
        .atLine(58)
        .next()
        .atLine(64);
  }