EmojiUtils { public static int emojisCount(@Nullable final CharSequence text) { return emojis(text).size(); } private  EmojiUtils(); static boolean isOnlyEmojis(@Nullable final CharSequence text); @NonNull static List<EmojiRange> emojis(@Nullable final CharSequence text); static int emojisCount(@Nullable final CharSequence text); @NonNull static EmojiInformation emojiInformation(@Nullable final CharSequence text);  }
@Test public void emojisCountEmpty() { assertThat(EmojiUtils.emojisCount("")).isEqualTo(0); }
@Test public void emojisCountNull() { assertThat(EmojiUtils.emojisCount(null)).isEqualTo(0); }
@Test public void emojisCountText() { assertThat(EmojiUtils.emojisCount("hello world!")).isEqualTo(0); }
@Test public void emojisCountSingleEmoji() { assertThat(EmojiUtils.emojisCount(EMOJI_1)).isEqualTo(1); }
@Test public void emojisCountMultipleEmoji() { assertThat(EmojiUtils.emojisCount(EMOJI_1 + EMOJI_2)).isEqualTo(2); }
@Test public void emojisCountMultipleEmojisWithSpaces() { assertThat(EmojiUtils.emojisCount(" " + EMOJI_1 + " " + EMOJI_2 + " \n")).isEqualTo(2); }
@Test public void emojisCountSingleEmojiAndText() { assertThat(EmojiUtils.emojisCount(EMOJI_1 + "hello")).isEqualTo(1); }
@Test public void emojisCountSingleTextAndEmoji() { assertThat(EmojiUtils.emojisCount("hello" + EMOJI_1)).isEqualTo(1); }
@Test public void emojisCountMultipleEmojisAndText() { assertThat(EmojiUtils.emojisCount(EMOJI_1 + "hello" + EMOJI_2)).isEqualTo(2); }
@Test public void emojisCountMultipleTextAndEmojis() { assertThat(EmojiUtils.emojisCount("hello" + EMOJI_1 + "world")).isEqualTo(1); }