public function initializeSequence(int $committedSequence): void
    {
        assert($this->isEmpty(), 'Cannot initialize sequence after adding events');
        $this->committedSequence = $committedSequence;
    }