assertEquals("DATA" + i++, new String(record, "UTF-8"));
}
// Replay the journal backward by undoing:
int j = 1000;
for (Location location : journal.undo()) {
byte[] record = journal.read(location, Journal.ReadType.ASYNC);
assertEquals("DATA" + --i, new String(record, "UTF-8"));
}
// Delete locations: