*
* @param planGenerator
* the plan generator to user
*/
private void addMigrationMock(T2FlowExecutablePlanGenerator planGenerator) {
WorkflowDescription wf = mock(WorkflowDescription.class);
when(wf.getDataflowId()).thenReturn(MIGRATION_DATAFLOW_ID);
List<Port> inputPorts = new ArrayList<Port>(1);
inputPorts.add(new Port("source", "Description", ComponentConstants.VALUE_SOURCE_OBJECT));
when(wf.getInputPorts()).thenReturn(inputPorts);
List<Port> outputPorts = new ArrayList<Port>(1);
outputPorts.add(new Port("target", "Description", ComponentConstants.VALUE_TARGET_OBJECT));
when(wf.getOutputPorts()).thenReturn(outputPorts);
List<MigrationPath> migrationPaths = new ArrayList<MigrationPath>(1);
migrationPaths.add(new MigrationPath("image/tiff", "image/jp2"));
when(wf.getMigrationPaths()).thenReturn(migrationPaths);
planGenerator.setMigrationComponent(wf, generateMigrationContent(MIGRATION_DATAFLOW_ID, "Migration component"),
new HashMap<String, String>(0));
}