StringUtils { public static boolean isBlank(@Nullable final CharSequence text) { return text == null || text.toString().trim().isEmpty(); } private  StringUtils(); static boolean isEmailValid(@NonNull final String email); static boolean isBlank(@Nullable final CharSequence text); static boolean isBlank(@Nullable final String text); @NonNull static String getFirstCapitalize(@NonNull String text); @NonNull static String getAllCapitalize(@NonNull String text);  }
@Test public void testIsEmptyWithEmpty() { assertThat(StringUtils.isBlank(""), is(true)); }
@Test public void testIsEmptyWithNull() { assertThat(StringUtils.isBlank(null), is(true)); }
@Test public void testIsEmptyWithSpaces() { assertThat(StringUtils.isBlank(" "), is(true)); }
@Test public void testIsEmptyWithText() { assertThat(StringUtils.isBlank("I'm not empty!"), is(false)); }