StringHelper { public static String toCamelCase(String s) { if (s == null) { return ""; } return WordUtils.capitalizeFully(s, ' ', '_').replaceAll(" ", "").replaceAll("_", ""); } private  StringHelper(); static String toCamelCase(String s); static String toCamelCaseSmallBegin(String s); static String toOracleName(String s); static boolean isJavaKeyword(String s); static String unJavaKeyword(String s);  }
@Test public void testToCamelCase() { Assert.assertEquals("HelloWorld", StringHelper.toCamelCase("hello_world")); Assert.assertEquals("", StringHelper.toCamelCase(null)); }