}
@Test
public void testSumInMiddle() {
PipelineMapReduceDriver driver = new PipelineMapReduceDriver();
driver.withMapReduce(new IdentityMapper(), new IdentityReducer())
.withMapReduce(new IdentityMapper(), new LongSumReducer())
.withMapReduce(new IdentityMapper(), new IdentityReducer())
.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))