assertNull(mark);
}
public void testAppendAndRead() throws InvalidRecordLocationException, InterruptedException, IOException {
Packet data1 = createPacket("Hello World 1");
RecordLocation location1 = journal.write( data1, false);
Packet data2 = createPacket("Hello World 2");
RecordLocation location2 = journal.write( data2, false);
Packet data3 = createPacket("Hello World 3");
RecordLocation location3 = journal.write( data3, false);
// Now see if we can read that data.
Packet data;
data = journal.read(location2);
assertEquals( data2, data);
data = journal.read(location1);
assertEquals( data1, data);
data = journal.read(location3);