JavaBeansUtil { public static String getValidPropertyName(String inputString) { String answer; if (inputString == null) { answer = null; } else if (inputString.length() < 2) { answer = inputString.toLowerCase(Locale.US); } else { if (Character.isUpperCase(inputString.charAt(0)) && !Character.isUpperCase(inputString.charAt(1))) { answer = inputString.substring(0, 1).toLowerCase(Locale.US) + inputString.substring(1); } else { answer = inputString; } } return answer; } 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 testGetValidPropertyName() { assertEquals("eMail", getValidPropertyName("eMail")); assertEquals("firstName", getValidPropertyName("firstName")); assertEquals("URL", getValidPropertyName("URL")); assertEquals("XAxis", getValidPropertyName("XAxis")); assertEquals("a", getValidPropertyName("a")); assertEquals("b", getValidPropertyName("B")); assertEquals("yaxis", getValidPropertyName("Yaxis")); assertEquals("i_PARAM_INT_1", getValidPropertyName("I_PARAM_INT_1")); assertEquals("_fred", getValidPropertyName("_fred")); assertEquals("accountType", getValidPropertyName("AccountType")); }