@Test
public void should_escape_unsafe_characters() throws Exception {

    HtmlSanitizer htmlSanitizer = new HtmlSanitizer();
    assertThat(htmlSanitizer.escapeSingleQuotesAndNewLines("Here\n'goes'\nthe\r\nmessage"))
            .isEqualTo("Here\\n\\'goes\\'\\nthe\\nmessage");
}