### Question:
ConverterUtils { public String getGetter(String text) { String[] parts = text.split(VARIABLE_SEPARATOR); if (parts.length == 0) { return ""; } if (parts.length == 1) { return getGetter(text + "." + types.get(text).getValue()); } StringBuffer getter = new StringBuffer(parts[0]); for (int i = 1; i < parts.length; i++) { getter.append(".get").append(parts[i].substring(0, 1).toUpperCase()).append(parts[i].substring(1)).append("()"); } return getter.toString(); } ConverterUtils(Spec spec); String parseOutput(String right); String parseOutput(String left, String right); String getGetter(String text);  }### Answer:
@Test public void testGetter() { ConverterUtils converter = new ConverterUtils(buildSpec()); assertEquals("name.getString()", converter.getGetter("name")); assertEquals("user.getAge()", converter.getGetter("user.age")); assertEquals("grade.getNumber()", converter.getGetter("grade")); }