@Test public void escapeSupplementaryCharacter(){

    String text = new String(Character.toChars(135361));
    String escapedAscii = Entities.escape(text, Charset.forName("ascii").newEncoder(), Entities.EscapeMode.base);
    assertEquals("&#x210c1;", escapedAscii);
    String escapedUtf = Entities.escape(text, Charset.forName("UTF-8").newEncoder(), Entities.EscapeMode.base);
    assertEquals(text, escapedUtf);
}