@Test
void shouldEscapeEntities() {

    try (Stream<String> lines = Stream.of("<b>CheckStyle</b> <script>execute</script>")) {
        ConsoleDetail consoleDetail = new ConsoleDetail(mock(Run.class), lines, 1, 2);
        assertThat(consoleDetail.getSourceCode())
                .doesNotContain("<b>CheckStyle</b> <script>execute</script>")
                .contains("&lt;b&gt;CheckStyle&lt;/b&gt; &lt;script&gt;execute&lt;");
    }
}