### Question:
Entities { static String unescape(String string) { return unescape(string, false); } private  Entities(); static boolean isNamedEntity(final String name); static boolean isBaseNamedEntity(final String name); static Character getCharacterByName(String name); static String getByName(String name); static int codepointsForName(final String name, final int[] codepoints);  }### Answer:
@Test public void notMissingMultis() { String text = "&nparsl;"; String un = "\u2AFD\u20E5"; assertEquals(un, Entities.unescape(text)); }
@Test public void notMissingSupplementals() { String text = "&npolint; &qfr;"; String un = "⨔ \uD835\uDD2E"; assertEquals(un, Entities.unescape(text)); }
@Test public void unescape() { String text = "Hello &AElig; &amp;&LT&gt; &reg &angst; &angst &#960; &#960 &#x65B0; there &! &frac34; &copy; &COPY;"; assertEquals("Hello Æ &<> ® Å &angst π π 新 there &! ¾ © ©", Entities.unescape(text)); assertEquals("&0987654321; &unknown", Entities.unescape("&0987654321; &unknown")); }
@Test public void strictUnescape() { String text = "Hello &amp= &amp;"; assertEquals("Hello &amp= &", Entities.unescape(text, true)); assertEquals("Hello &= &", Entities.unescape(text)); assertEquals("Hello &= &", Entities.unescape(text, false)); }
@Test public void quoteReplacements() { String escaped = "&#92; &#36;"; String unescaped = "\\ $"; assertEquals(unescaped, Entities.unescape(escaped)); }
@Test public void noSpuriousDecodes() { String string = "http: assertEquals(string, Entities.unescape(string)); }