### Question:
StringUtils { public static String capitalize(String name) { return changeFirstCharacterCase(name, true); } private  StringUtils(); static boolean isEmpty(String str); static Predicate<String> notEmpty(); static boolean isEmpty(List<String> list); static String diff(String str1, String str2); static String getFirstFound(String contents, String regex); static String addDefaultPortIfMissing(String urlString); static String addDefaultPortIfMissing(String urlString, String defaultPort); static String capitalize(String name); static String uncapitalize(String str); static byte[] toBytesUTF8(String str); static byte[] toBytesASCII(String str); static byte[] toBytes(String str, String enc); static String toHexString(byte[] bytes);  }### Answer:
@Test public void testCapitalize() { assertEquals(null, StringUtils.capitalize(null)); assertEquals("", StringUtils.capitalize("")); assertEquals("A", StringUtils.capitalize("A")); assertEquals("A", StringUtils.capitalize("a")); assertEquals("Aa", StringUtils.capitalize("aa")); assertEquals("Aa", StringUtils.capitalize("Aa")); assertEquals("AA", StringUtils.capitalize("AA")); }