Record readTarget = new Record();
while ((readTarget = iter.next(readTarget)) != null) {
generator.next(record);
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);