public void testAllStoredEventsBetween() throws Exception {
EventStore eventStore = this.eventStore();
long totalEvents = eventStore.countStoredEvents();
assertEquals(totalEvents, eventStore.allStoredEventsBetween(1, totalEvents).size());
assertEquals(10, eventStore.allStoredEventsBetween(totalEvents - 9, totalEvents).size());
}
public void testAllStoredEventsSince() throws Exception {