private function callAfterExample($exampleEvent, $nameChecker, $method, $isNameValid = true)
{
$exception = new MethodNotFoundException('Error', new \stdClass(), $method);
$exampleEvent->getException()->willReturn($exception);
$nameChecker->isNameValid($method)->willReturn($isNameValid);
$this->afterExample($exampleEvent);
}