createTuple(new Object[] {2, 3}),
createTuple(new Object[] {4, 7}),
ControlBlock.LIST_END
});
MockOutputPipe output = new MockOutputPipe(new Object[] {});
activity.addInput("data", input);
activity.addOutput("result", output);
activity.process();
Iterator blocks = output.getActualBlocks().iterator();
assertTrue(blocks.hasNext());
assertEquals(ControlBlock.LIST_BEGIN, blocks.next());
assertTrue(blocks.hasNext());
Object block = blocks.next();
assertTrue(block instanceof MetadataWrapper);