conf.set(MRConfiguration.TASK_ID, taskId.toString());
InputSplit is = new FileSplit(new Path(temp.getAbsolutePath()), 0, temp.length(), null);
InterRecordReader reader = new InterRecordReader();
reader.initialize(is, HadoopShims.createTaskAttemptContext(conf, taskId));
for (int i = 0; i < sz; i++) {
assertTrue(reader.nextKeyValue());
SchemaTuple<?> st = (SchemaTuple<?>)reader.getCurrentValue();
assertEquals(written.get(i), st);