### Question:
NameHelper { public String getSetterName(String propertyName, JsonNode node) { propertyName = getPropertyNameForAccessor(propertyName, node); String prefix = "set"; String setterName; if (propertyName.length() > 1 && Character.isUpperCase(propertyName.charAt(1))) { setterName = prefix + propertyName; } else { setterName = prefix + capitalize(propertyName); } if (setterName.equals("setClass")) { setterName = "setClass_"; } return setterName; } NameHelper(GenerationConfig generationConfig); String getBuilderTypeParameterName(JDefinedClass instanceClass); String replaceIllegalCharacters(String name); String normalizeName(String name); String capitalizeTrailingWords(String name); String getPropertyName(String jsonFieldName, JsonNode node); String getSetterName(String propertyName, JsonNode node); String getBuilderName(String propertyName, JsonNode node); String getFieldName(String propertyName, JsonNode node); String getClassName(String propertyName, JsonNode node); String getGetterName(String propertyName, JType type, JsonNode node); String getBaseBuilderClassName(JClass outerClass); String getBaseBuilderClassNameSuffix(JClass outerClass); String getBuilderClassName(JClass outerClass); String getBuilderClassNameSuffix(JClass outerClass); String getUniqueClassName(String nodeName, JsonNode node, JPackage _package); String getClassName(String nodeName, JsonNode node, JPackage _package); static final String ILLEGAL_CHARACTER_REGEX; }### Answer:
@Test public void testSetterNamedCorrectly() { assertThat(nameHelper.getSetterName("foo", NODE), is("setFoo")); assertThat(nameHelper.getSetterName("oAuth2State", NODE), is("setoAuth2State")); assertThat(nameHelper.getSetterName("URL", NODE), is("setUrl")); }