StringHelper { public static String toCamelCase(String s){ return WordUtils.uncapitalize(WordUtils.capitalizeFully(s).replaceAll(" ", "")); }  static String trimAndRemoveExtraSpacesBetweenWords(String sParam); static String removeExtraSpacesAndCapOnlyFirstLetterOfEachWord(String sParam); static String removeExtraSpacesAndCapFirstLetter(String sParam); static String getLoginFromFormattedNameAndLogin(String formattedNameAndLogin); static boolean isStringAValidEmailAddress(String s); static Integer convertStringToInteger(String s); static String toCamelCase(String s); static String deCamelCase(String s);  }
@Test (groups = "unit-tests") public void testToCamelCase() { String expected = new String("fooBarBazBob"); Assert.assertEquals(StringHelper.toCamelCase("Foo bar Baz bob"),expected); }