private function eventIsFound(DomainEvent $targetEvent, DomainEvents $realEvents)
    {
        $found = $realEvents->filter(function ($realEvent) use ($targetEvent) {
            try {
                $eventsAreEqual = $this->eventsAreEqual($realEvent, $targetEvent);
            } catch (FailureException $e) {
                $eventsAreEqual = false;
            }
            return $eventsAreEqual;
        });

        return $found->count() != 0;
    }