public class TestCollectionAggregator {
@Test
public void testCollectionAggregatorCombine() {
final List<EmitValue> values = new ArrayList<EmitValue>();
values.add(new EmitValue("one"));
values.add(new EmitValue("two"));
values.add(new EmitValue("three"));
values.add(new EmitValue("four"));
final ReduceDriver<EmitKey, EmitValue, EmitKey, EmitValue> reduceDriver = new ReduceDriver<EmitKey, EmitValue, EmitKey, EmitValue>(
new CollectionSizzleCombiner());
reduceDriver.setInput(new EmitKey("test"), values);
reduceDriver.addOutput(new EmitKey("test"), new EmitValue("one"));
reduceDriver.addOutput(new EmitKey("test"), new EmitValue("two"));
reduceDriver.addOutput(new EmitKey("test"), new EmitValue("three"));
reduceDriver.addOutput(new EmitKey("test"), new EmitValue("four"));
reduceDriver.runTest();
}