EmojiManager { public static void destroy() { synchronized (EmojiManager.class) { release(); INSTANCE.emojiMap.clear(); INSTANCE.categories = null; INSTANCE.emojiPattern = null; INSTANCE.emojiRepetitivePattern = null; INSTANCE.emojiReplacer = null; } } private  EmojiManager(); static EmojiManager getInstance(); static void install(@NonNull final EmojiProvider provider); static void destroy(); static void release(); void replaceWithImages(final Context context, final Spannable text, final float emojiSize); void verifyInstalled();  }
@Test public void destroy() { EmojiManager.destroy(); assertThatThrownBy(new ThrowableAssert.ThrowingCallable() { @Override public void call() throws Throwable { EmojiManager.getInstance().findEmoji("test"); } }).isInstanceOf(IllegalStateException.class).hasMessage("Please install an EmojiProvider through the EmojiManager.install() method first."); }