BeanUtil { public static String toCapitalizeCamelCase(final String str) { if (str == null) { return null; } String s = toCamelCase(str); return s.substring(0, 1).toUpperCase() + s.substring(1); }  static boolean isAbstract(final Method method); static String[] getMethodParamNames(final Class<?> clazz, final String method, final Class<?>... paramTypes); static String[] getMethodParamNames(final Method method); static String getMethodSignature(final Method method); static Set<Class<?>> getClasses(final String pk); static String toUnderlineName(final String s); static String toCamelCase(final String str); static String camelStr2underLine(final String camelStr); static String toCapitalizeCamelCase(final String str); static boolean isSimpleValueType(final Class<?> clazz); static boolean isSimpleProperty(final Class<?> clazz);  }
@Test public void toCapitalizeCamelCase() { String str1 = "to_caPitaLize_CaMel_case"; String str2 = BeanUtil.toCapitalizeCamelCase(str1); Assert.equals(str2, "ToCapitalizeCamelCase", ErrorCodeDef.SYSTEM_ERROR_10001); }