JavaBeansUtil { public static String getSetterMethodName(String property) { StringBuilder sb = new StringBuilder(); sb.append(property); if (Character.isLowerCase(sb.charAt(0)) && (sb.length() == 1 || !Character.isUpperCase(sb.charAt(1)))) { sb.setCharAt(0, Character.toUpperCase(sb.charAt(0))); } sb.insert(0, "set"); return sb.toString(); } private  JavaBeansUtil(); static String getGetterMethodName(String property,
            FullyQualifiedJavaType fullyQualifiedJavaType); static String getSetterMethodName(String property); static String getFirstCharacterUppercase(String inputString); static String getCamelCaseString(String inputString,
            boolean firstCharacterUppercase); static String getValidPropertyName(String inputString); static Method getJavaBeansGetter(IntrospectedColumn introspectedColumn,
            Context context,
            IntrospectedTable introspectedTable); static Method getJavaBeansGetterWithGeneratedAnnotation(IntrospectedColumn introspectedColumn,
            Context context, IntrospectedTable introspectedTable, CompilationUnit compilationUnit); static Field getJavaBeansField(IntrospectedColumn introspectedColumn,
            Context context,
            IntrospectedTable introspectedTable); static Field getJavaBeansFieldWithGeneratedAnnotation(IntrospectedColumn introspectedColumn,
            Context context,
            IntrospectedTable introspectedTable,
            CompilationUnit compilationUnit); static Method getJavaBeansSetter(IntrospectedColumn introspectedColumn,
            Context context,
            IntrospectedTable introspectedTable); static Method getJavaBeansSetterWithGeneratedAnnotation(IntrospectedColumn introspectedColumn,
            Context context,
            IntrospectedTable introspectedTable, CompilationUnit compilationUnit);  }
@Test public void testGetSetterMethodName() { assertEquals("seteMail", getSetterMethodName("eMail")); assertEquals("setFirstName", getSetterMethodName("firstName")); assertEquals("setURL", getSetterMethodName("URL")); assertEquals("setXAxis", getSetterMethodName("XAxis")); assertEquals("setA", getSetterMethodName("a")); assertEquals("setI_PARAM_INT_1", getSetterMethodName("i_PARAM_INT_1")); assertEquals("set_fred", getSetterMethodName("_fred")); assertEquals("setAccountType", getSetterMethodName("AccountType")); }