Pipe results = new MultiGroupBy(s1, new Fields("key"), s2, new Fields("key"),
new Fields("key-rename"), new CustomBuffer(new Fields("result", " result1", "result2", "result3", "result4", "result5")));
CascadingUtil.get().getFlowConnector().connect(sources, sink, results).complete();
TupleEntryIterator iter = sink.openForRead(CascadingUtil.get().getFlowProcess());
assertEquals(new Tuple(1, 108, 108, 108, 108, 108, 108), iter.next().getTuple());
assertEquals(new Tuple(2, 5, 5, 5, 5, 5, 5), iter.next().getTuple());
assertEquals(new Tuple(3, 6, 6, 6, 6, 6, 6), iter.next().getTuple());
assertEquals(new Tuple(5, 7, 7, 7, 7, 7, 7), iter.next().getTuple());
assertFalse(iter.hasNext());
}