readTarget = sorter.getRecord(readTarget, i++);
Key rk = readTarget.getField(0, Key.class);
Key gk = record.getField(0, Key.class);
Value rv = readTarget.getField(1, Value.class);
Value gv = record.getField(1, Value.class);
Assert.assertEquals("The re-read key is wrong", gk, rk);
Assert.assertEquals("The re-read value is wrong", gv, rv);
}