### Question:
UIDEditor extends PropertyEditorSupport { @Override public void setAsText(String text) { if (Strings.isNullOrEmpty(text)) { setValue(null); } else { setValue(new UID(text)); } }  @Override String getAsText(); @Override void setAsText(String text);  }### Answer:
@Test public void Set_As_Text_And_Get_Value() { UIDEditor editor = new UIDEditor(); editor.setAsText(RDF.type.getId()); assertEquals(RDF.type, editor.getValue()); }