CaseUtils { public static String snakeToCamelCase(String str) { return toCamelCase(str, false, '_'); } private  CaseUtils(); static String snakeToPascalCase(String str); static String snakeToCamelCase(String str); static String toCamelCase(String str); static String toPascalCase(String str); static String toCamelCase(String str, final boolean capitalizeFirstLetter, final char... delimiters); static String toSnakeCase(String word);  }
@Test public void convertsSnakeToLowerCamelCase() { assertThat(CaseUtils.snakeToCamelCase("foo_bar"), equalTo("fooBar")); assertThat(CaseUtils.snakeToCamelCase("Foo_bar"), equalTo("fooBar")); assertThat(CaseUtils.snakeToCamelCase("__foo_bar"), equalTo("fooBar")); }