@Test
public void ensureSettingThePipelineWorks() {
Operation op = new Operation("Op");
op.setOperationType(ArchiveOperationType.TYPE);
OperationPipeline pipeline = TransformationOperationType.TYPE.createNewTemplate();
TransformationPipelineBrowser browser = new TransformationPipelineBrowser(pipeline);
Source source = new Source("S");
browser.getSourceActivity().setContent(source);
Transformation tf = new Transformation("TF");
browser.getTransformationActivity().setContent(tf);
Target target = new Target("T");
browser.getTargetActivity().setContent(target);
op.setPipeline(pipeline);
assertSame(pipeline.getType(), op.getOperationType());
assertEquals(source.getID(), op.getSourceId());
assertEquals(target.getID(), op.getTargetId());
assertEquals(Arrays.asList(tf.getID()), op.getFunctionIDs());