@Test
public void testMostSimilarItemPairsReducer() throws Exception {
Reducer<EntityEntityWritable,DoubleWritable,EntityEntityWritable,DoubleWritable>.Context context =
EasyMock.createMock(Reducer.Context.class);
context.write(new EntityEntityWritable(123L, 456L), new DoubleWritable(0.5));
EasyMock.replay(context);
new ItemSimilarityJob.MostSimilarItemPairsReducer().reduce(new EntityEntityWritable(123L, 456L),
Arrays.asList(new DoubleWritable(0.5), new DoubleWritable(0.5)), context);
EasyMock.verify(context);
}