mem.open();
FlumeConfiguration conf = FlumeConfiguration.get();
FileSystem fs = FileSystem.getLocal(conf);
SequenceFile.Reader r = new SequenceFile.Reader(fs, new Path(f.toURI()), conf);
WriteableEventKey k = new WriteableEventKey();
WriteableEvent evt = new WriteableEvent();
while (r.next(k, evt)) {
Event expected = mem.next();
assertEquals(evt.getTimestamp(), expected.getTimestamp());
assertEquals(evt.getNanos(), expected.getNanos());