Strings { public static String humanize(String word) { word = word.replaceAll("_id", ""); return capitalize(word.replaceAll("_", " ")); }  static String tableize(String word); static String pluralize(String word); static String singularize(String word); static String underscore(String word); static String camelize(String word); static String camelize(String word, boolean lowercaseFirstLetter); static String depackage(String word); static String foreignKey(String className); static String foreignKey(String className, boolean separateIdWithUnderscore); static String titleize(String word); static String classify(String tableName); static String humanize(String word); static String ordinalize(int n); static String dasherize(String word); static String capitalize(String word);  }
@Test public void testHumanize() { for (Map.Entry<String, String> entry : underscoreToHuman_.entrySet()) { assertEquals(entry.getValue(), Strings.humanize(entry.getKey())); } }