}
@Test
public void addQaComponent_mimetypePair_sourceLeft_targetRight() throws IOException, ParserConfigurationException,
SAXException, DocumentException {
T2FlowExecutablePlanGenerator planGenerator = new T2FlowExecutablePlanGenerator("Name", "Author", "image/tiff",
"image/jp2");
planGenerator.addSourcePort();
planGenerator.addTargetPort();
addMigrationMock(planGenerator);
WorkflowDescription wf = mockQa("QA component");
when(wf.acceptsMimetypes("image/tiff", "image/jp2")).thenReturn(true);
when(wf.acceptsLeftMimetype("image/tiff")).thenReturn(true);
when(wf.acceptsRightMimetype("image/jp2")).thenReturn(true);
planGenerator.addQaComponent(wf, generateQaContent(QA_DATAFLOW_ID, "QA component"), DEFAULT_PARAMETERS,
DEFAULT_MEASURES);
Document doc = getDocument(planGenerator);
assertThat(