### Question:
ModelService implements ModelManager { @SuppressWarnings("unchecked") public String getDataObject(ItemCollection bpmnElement, String name) { List<List<String>> dataObjects = bpmnElement.getItemValue("dataObjects"); if (dataObjects != null && dataObjects.size() > 0) { for (List<String> dataObject : dataObjects) { String key = dataObject.get(0); if (name.equals(key)) { return dataObject.get(1); } } } return null; } ModelService(); @Override void addModel(Model model); void removeModel(String modelversion); @Override Model getModel(String version); @Override Model getModelByWorkitem(ItemCollection workitem); List<String> getVersions(); List<String> getLatestVersions(); List<String> getGroups(); List<String> findVersionsByGroup(String group); List<String> findVersionsByRegEx(String modelRegex); void saveModel(BPMNModel model); void saveModel(BPMNModel model, String _filename); void deleteModel(String version); ItemCollection loadModelEntity(String version); @SuppressWarnings("unchecked") String getDataObject(ItemCollection bpmnElement, String name);  }### Answer:
@Test public void testGetDataObject() throws ModelException { this.setModelPath("/bpmn/TestWorkflowService.bpmn"); this.loadModel(); ItemCollection event = this.getModel().getEvent(100, 20); Assert.assertNotNull(event); ModelService modelService = new ModelService(); String data = modelService.getDataObject(event, "MyObject"); Assert.assertNotNull(data); Assert.assertEquals("My data", data); }