@Override public List<Pair<K2, V2>> run() throws IOException { List<Pair<K1, V1>> inputs = new ArrayList<Pair<K1, V1>>(); inputs.add(new Pair<K1, V1>(inputKey, inputVal)); try { MockMapContextWrapper<K1, V1, K2, V2> wrapper = new MockMapContextWrapper(); MockMapContextWrapper<K1, V1, K2, V2>.MockMapContext context = wrapper.getMockContext(configuration, inputs, getCounters()); myMapper.run(context); return context.getOutputs(); } catch (InterruptedException ie) { throw new IOException(ie); } }