EmojiApi { public static String replaceUnicodeWithImages(String text) { return getInstance().interpolate(text); } private  EmojiApi(); static EmojiChar byHexCode(String hex); static EmojiChar byName(String name); static EmojiChar byUnicode(String codePoint); static EmojiApi configure(); static String imageTagByUnicode(String codePoint); static String replaceUnicodeWithImages(String text); static List<EmojiChar> search(String... annotations); EmojiApi assetsURL(String assetsURL); EmojiApi assetsURL(URL assetsURL); EmojiApi format(String format); String getAssetsURL(); String getFormat(); String getImageExtension(); EmojiApi imageExtension(String imageExt);  }
@Test public void testReplaceUnicodeWithImagesAssetsURL() { String replaced = EmojiApi.replaceUnicodeWithImages(SIMPLE_MOJI_TXT); assertEquals(replaced, "Lorem ipsum <img class=\"emoji\" src=\"http: "alt=\"white frowning face\" /> dolorem<img class=\"emoji\" " + "src=\"http: "and dolorem sit amet"); replaced = EmojiApi.replaceUnicodeWithImages("I ❤ Emoji"); assertEquals(replaced, "I <img class=\"emoji\" src=\"http: "alt=\"heavy black heart\" /> Emoji"); }