StringUtils { public static boolean equalsIgnoreCase(String str1, String str2) { return str1 == null ? str2 == null : str1.equalsIgnoreCase(str2); }  static boolean isEmpty(String str); static boolean isContainEmpty(String... args); static boolean isBlank(String str); static String trimToNull(String str); static String trimToEmpty(String str); static String trim(String str); static boolean equals(String str1, String str2); static boolean equalsIgnoreCase(String str1, String str2); static boolean startsWith(String str, String prefix); static boolean startsWithIgnoreCase(String str, String prefix); static boolean isNumeric(String str); static String join(Collection<T> collection, String separator); static String join(Collection<T> collection, String separator,
                                StringFormatter<T> formatter); static final String EMPTY; }
@Test public void testEqualsIgnoreCase() { Assert.assertFalse(StringUtils.equalsIgnoreCase(",", "foo")); Assert.assertFalse(StringUtils.equalsIgnoreCase(null, "??")); Assert.assertTrue(StringUtils.equalsIgnoreCase(null, null)); Assert.assertTrue(StringUtils.equalsIgnoreCase("foo", "Foo")); }