r.close();
}
final ReduceDriver<EmitKey, EmitValue, EmitKey, EmitValue> reduceDriver = new ReduceDriver<EmitKey, EmitValue, EmitKey, EmitValue>(
new FloatHistogramSizzleCombiner());
reduceDriver.setInput(new EmitKey("test"), values);
final List<Pair<EmitKey, EmitValue>> output = reduceDriver.run();
Assert.assertEquals("size is wrong", 575, output.size());
Assert.assertEquals("outputs are wrong", new EmitKey("test"), output.get(14).getFirst());
Assert.assertEquals("outputs are wrong", new EmitValue("-292.0", 1), output.get(14).getSecond());
Assert.assertEquals("outputs are wrong", new EmitKey("test"), output.get(256).getFirst());
Assert.assertEquals("outputs are wrong", new EmitValue("-32.0", 42), output.get(256).getSecond());
}