ArrayList<BytesWritable> values = new ArrayList<BytesWritable>();
values.add(value1);
Reducer.Context context = mock(Reducer.Context.class);
Counters counters = new Counters();
Counter counter = counters.findCounter(DedupRecordCounter.OUTPUT);
when(context.getCounter(DedupRecordCounter.OUTPUT)).thenReturn(counter);
DedupValueReducer dedupReducer = new DedupValueReducer();
dedupReducer.reduce(hihoTuple, values, context);
verify(context).write(value1, key);
assertEquals(1, context.getCounter(DedupRecordCounter.OUTPUT)