public function testVisitAllEvents()
 {
     $eventVisitor = $this->getMock(EventVisitorInterface::class);
     $eventVisitor->expects($this->exactly(100))->method('doWithEvent');
     $this->testSubject->appendEvents('type1', new SimpleDomainEventStream($this->createDomainEvents(77)));
     $this->testSubject->appendEvents('type2', new SimpleDomainEventStream($this->createDomainEvents(23)));
     $this->testSubject->visitEvents($eventVisitor);
 }