/** * tests {@link ItemIDIndexReducer} */ @Test public void testItemIDIndexReducer() throws Exception { Reducer<VarIntWritable, VarLongWritable, VarIntWritable,VarLongWritable>.Context context = EasyMock.createMock(Reducer.Context.class); context.write(new VarIntWritable(123), new VarLongWritable(45L)); EasyMock.replay(context); new ItemIDIndexReducer().reduce(new VarIntWritable(123), Arrays.asList(new VarLongWritable(67L), new VarLongWritable(89L), new VarLongWritable(45L)), context); EasyMock.verify(context); }