public List<Pair<K2, V2>> run() throws IOException {
List<Pair<K1, List<V1>>> inputs = new ArrayList<Pair<K1, List<V1>>>();
inputs.add(new Pair<K1, List<V1>>(inputKey, inputValues));
try {
MockReduceContextWrapper<K1, V1, K2, V2> wrapper = new MockReduceContextWrapper();
MockReduceContextWrapper<K1, V1, K2, V2>.MockReduceContext context =
wrapper.getMockContext(inputs, getCounters(), getConfiguration());
myReducer.run(context);
return context.getOutputs();
} catch (InterruptedException ie) {
throw new IOException(ie);