### Question:
YearEditor extends PropertyEditorSupport { @Override public String getAsText() { Year year = (Year) getValue(); if (year == null) { return ""; } else { return Integer.toString(year.getYear()); } }  @Override String getAsText(); @Override void setAsText(String text);  }### Answer:
@Test public void GetAsText() { editor.setValue(new Year(2000)); assertEquals("2000", editor.getAsText()); }