### Question:
BeanUtils { public static String capitalize(String name) { if (name.length() > 1 && Character.isUpperCase(name.charAt(1))) { return name; } else if (name.length() > 1) { return Character.toUpperCase(name.charAt(0)) + name.substring(1); } else { return name.toUpperCase(); } } private  BeanUtils(); static String capitalize(String name); static String uncapitalize(String name); static boolean isAccessorPresent(String prefix, String property, Class<?> bean); static Method getAccessor(String prefix, String property, Class<?> bean);  }### Answer:
@Test public void capitalize() { assertEquals("X", BeanUtils.capitalize("x")); assertEquals("Prop", BeanUtils.capitalize("prop")); assertEquals("URL", BeanUtils.capitalize("URL")); assertEquals("cId", BeanUtils.capitalize("cId")); assertEquals("sEPOrder", BeanUtils.capitalize("sEPOrder")); }