}
@Test
public void testSentEvents() {
LinkedList<Event> events = generateEventList(10000);
SourceBase source = new TestSource();
EventStack stack = new EventStack();
source.addSink(stack);
for (Event e : events)
send(source, e);
assertEquals(events.size(), stack.size());