WorkflowDescription wf = mock(WorkflowDescription.class);
when(wf.getName()).thenReturn(name);
when(wf.getDataflowId()).thenReturn(QA_DATAFLOW_ID);
List<Port> inputPorts = new ArrayList<Port>(2);
inputPorts.add(new Port("left", "Description", ComponentConstants.VALUE_LEFT_OBJECT));
inputPorts.add(new Port("right", "Description", ComponentConstants.VALUE_RIGHT_OBJECT));
when(wf.getInputPorts()).thenReturn(inputPorts);
List<Port> outputPorts = new ArrayList<Port>(1);
outputPorts.add(new Port("qa_output", "Description",
"http://purl.org/DP/quality/measures#1"));
when(wf.getOutputPorts()).thenReturn(outputPorts);
List<String> measures = new ArrayList<String>(1);
measures.add("http://purl.org/DP/quality/measures#1");