private function guardThatHistoryRepositoryDoesNotHaveMoreUnitsOfWork()
    {
        $historyDiffRepository = $this->historyRepository->diff(
            $this->sourceRepository
        );

        if (0 < $historyDiffRepository->count()) {
            throw new HistoryHasSourceUnknownUnitsOfWorkException();
        }
    }