// Phase I (20 message sent, 3 groups good, 1 group bad)
for (int i = 0; i < count; i++) {
Event e = new EventImpl(("test message " + i).getBytes());
wal.append(e);
if (i % 5 == 4) {
wal.rotate();
}
}
Clock.sleep(1000); // need other thread to make progress
// three blocks should have successfully made it.