@Test
void shouldCreateSourceWithLineNumber() {

    IssueBuilder builder = new IssueBuilder();
    Issue issue = builder.setLineStart(7).setMessage(MESSAGE).build();
    SourcePrinter printer = new SourcePrinter(createJenkinsFacade());
    Document document = Jsoup.parse(printer.render(asStream("format-java.txt"), issue,
            DESCRIPTION, ICON_URL));
    assertThatCodeIsEqualToSourceText(document);
    assertThat(document.getElementsByClass("analysis-warning-title").text())
            .isEqualTo(MESSAGE);
    assertThat(document.getElementsByClass("analysis-detail").text())
            .isEqualTo(DESCRIPTION);
}