@Test
public void testEscape() throws Exception {

    assertEquals("", RenderKitUtils.escape(""));
    assertEquals("abcd", RenderKitUtils.escape("abcd"));
    assertEquals("\\'abcd", RenderKitUtils.escape("'abcd"));
    assertEquals("abcd\\'", RenderKitUtils.escape("abcd'"));
    assertEquals("ab\\'cd", RenderKitUtils.escape("ab'cd"));
    assertEquals("ab\\'\\'cd", RenderKitUtils.escape("ab''cd"));
    assertEquals("ab\\'c\\'d", RenderKitUtils.escape("ab'c'd"));
}