StringUtils { public static boolean equalsIgnoreCaseAndWhitespace(String first, String second) { return first.replace(" ", "").equalsIgnoreCase(second.replace(" ", "")); } private  StringUtils(); static boolean containsIgnoreCase(String base, String test); static String deepToString(Object object); static boolean equalsIgnoreCaseAndWhitespace(String first, String second);  }
@Test public void testEqualsIgnoreCaseAndWhitespace() { assertTrue(StringUtils.equalsIgnoreCaseAndWhitespace("A B C", "abc")); }