CaseUtil { public static String capitalize(String string) { if (string == null) { return null; } if (string.length() <= 1) { return string.toUpperCase(Locale.ROOT); } return string.substring(0, 1).toUpperCase(Locale.ROOT) + string.substring(1); } private  CaseUtil(); static String upperCaseUnderscoreToHumanFriendly(
            String upperCaseUnderscoreString); static String capitalize(String string);  }
@Test public void capitalize() { assertNull(CaseUtil.capitalize(null)); assertEquals("", CaseUtil.capitalize("")); assertEquals("Great", CaseUtil.capitalize("great")); assertEquals("WONDERFUL", CaseUtil.capitalize("WONDERFUL")); }