@Test
public void testSumAtEnd() {
PipelineMapReduceDriver driver = new PipelineMapReduceDriver();
driver.withMapReduce(new IdentityMapper(), new IdentityReducer())
.withMapReduce(new IdentityMapper(), new IdentityReducer())
.withMapReduce(new IdentityMapper(), new LongSumReducer())
.withInput(new Text("foo"), new LongWritable(FOO_IN_A))
.withInput(new Text("bar"), new LongWritable(BAR_IN))
.withInput(new Text("foo"), new LongWritable(FOO_IN_B))
.withOutput(new Text("bar"), new LongWritable(BAR_OUT))
.withOutput(new Text("foo"), new LongWritable(FOO_OUT))