### Question:
DataObjectPropertyWriter extends PropertyWriter { @Override public void setName(String value) { final String escaped = StringUtils.replaceIllegalCharsAttribute(value.trim()); dataObject.setName(escaped); dataObject.setId(escaped); } DataObjectPropertyWriter(DataObjectReference element,
                                    VariableScope variableScope,
                                    Set<DataObject> dataObjects); @Override void setName(String value); void setType(String type); @Override DataObjectReference getElement(); Set<DataObject> getDataObjects();  }### Answer:
@Test public void setName() { tested.setName(NAME); assertEquals(NAME, reference.getDataObjectRef().getName()); tested.setName(NAME); assertEquals(NAME, reference.getDataObjectRef().getName()); }
@Test public void setName() { tested.setName(NAME); assertEquals(NAME, reference.getDataObjectRef().getName()); }