@Test
void escapeJSON()
{

    String escapedText = this.tool.json("\"'\\/\b\f\n\r\t\u1234 plain  text");
    assertTrue(escapedText.contains("\\\""), "Failed to escape [\"]");
    assertTrue(escapedText.contains("'"), "Wrongly escaped [']");
    assertTrue(escapedText.contains("\\\\"), "Failed to escape [\\]");
    assertTrue(escapedText.contains("\\/"), "Failed to escape [/]");
    assertTrue(escapedText.contains("\\b"), "Failed to escape [\\b]");
    assertTrue(escapedText.contains("\\f"), "Failed to escape [\\f]");
    assertTrue(escapedText.contains("\\n"), "Failed to escape [\\n]");
    assertTrue(escapedText.contains("\\r"), "Failed to escape [\\r]");
    assertTrue(escapedText.contains("\\t"), "Failed to escape [\\t]");
    assertTrue(escapedText.contains("\\u1234"), "Failed to escape [\\u1234]");
    assertTrue(escapedText.contains(" plain  text"), "Wrongly escaped plain text");
}