public function setUp(EventStore $eventStore)
{
$eventEmitter = $eventStore->getActionEventEmitter();
$eventEmitter->attachListener('create.pre', [$this, 'onEventStoreCreateStream'], -1000);
$eventEmitter->attachListener('appendTo.pre', [$this, 'onEventStoreAppendToStream'], -1000);
}