jaxbSimulation(dto, ListTasksDTO.class, ListTasksDTO.RELATED_CLASSES);
}
public void testListTasksDTOElementsWithContent() throws Exception {
List<TaskRef> tasks = new ArrayList<TaskRef>();
TaskRef task1 = new TaskRef();
task1.setPackageName("myPackage");
task1.setProcessId("myProcessId");
task1.setProcessName("myProcessName");
task1.setTaskId("myTaskId");
task1.addInput("myInput1", "myValue1");
task1.addInput("myInput2", "myValue2");
task1.addOutput("myOutput1", "myValue3");
task1.addOutput("myOutput2", "myValue4");
Map<String, String> metaData1 = new HashMap<String, String>();
metaData1.put("myMetaDataKey1", "myMetaDataValue1");
metaData1.put("myMetaDataKey2", "myMetaDataValue2");
task1.setMetaData(metaData1);
tasks.add(task1);
TaskRef task2 = new TaskRef();
task2.setPackageName("yourPackage");
task2.setProcessId("yourProcessId");
task2.setProcessName("yourProcessName");
task2.setTaskId("yourTaskId");
task2.addInput("yourInput1", "yourValue1");
task2.addInput("yourInput2", "yourValue2");
task2.addOutput("yourOutput1", "yourValue3");
task2.addOutput("yourOutput2", "yourValue4");
Map<String, String> metaData2 = new HashMap<String, String>();
metaData2.put("yourMetaDataKey1", "yourMetaDataValue1");
metaData2.put("yourMetaDataKey2", "yourMetaDataValue2");
task2.setMetaData(metaData2);
tasks.add(task2);
ListTasksDTO dto = new ListTasksDTO(tasks);
jaxbSimulation(dto, ListTasksDTO.class, ListTasksDTO.RELATED_CLASSES);
}