List<IntWritable> counts = new ArrayList<IntWritable>();
counts.add(new IntWritable(2));
PairsRelativeOccurrenceReducer reducer = new PairsRelativeOccurrenceReducer();
Field f = reducer.getClass().getDeclaredField("totalCount");
f.setAccessible(true);
DoubleWritable dw = (DoubleWritable)f.get(reducer);
dw.set(2);
new ReduceDriver<WordPair, IntWritable, WordPair, DoubleWritable>()
.withReducer(reducer)
.withInput(new WordPair("apple", "nut"), counts)
.withOutput(new WordPair("apple", "nut"), new DoubleWritable(1.0))
.runTest();
}