}
@Test
public void addCcComponent_twoComponents() throws IOException, ParserConfigurationException, SAXException,
DocumentException {
T2FlowExecutablePlanGenerator planGenerator = new T2FlowExecutablePlanGenerator("Name", "Author", "image/tiff",
"image/jp2");
planGenerator.addSourcePort();
planGenerator.addTargetPort();
addMigrationMock(planGenerator);
WorkflowDescription wf1 = mockCcAny("CC Component 1");
planGenerator.addCcComponent(wf1, generateCcContent(CC_DATAFLOW_ID, "CC Component 1"), DEFAULT_PARAMETERS,
DEFAULT_MEASURES, InputSource.SOURCE_OBJECT);
WorkflowDescription wf2 = mockCcAny("CC Component 2");
planGenerator.addCcComponent(wf2, generateCcContent(CC_DATAFLOW_ID, "CC Component 2"), DEFAULT_PARAMETERS,
DEFAULT_MEASURES, InputSource.TARGET_OBJECT);
Document doc = getDocument(planGenerator);
assertThat(