### Question:
DataObjectPropertyWriter extends PropertyWriter { public void setType(String type) { ItemDefinition itemDefinition = bpmn2.createItemDefinition(); itemDefinition.setStructureRef(type); dataObject.setItemSubjectRef(itemDefinition); addDataObjectToProcess(dataObject); } 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 setType() { tested.setType(NAME); assertEquals(NAME, reference.getDataObjectRef().getItemSubjectRef().getStructureRef()); }