public function testCanCreateFromCustomException()
 {
     $httpExceptionListener = new HttpExceptionListener([\InvalidArgumentException::class => Exception\Client\NotFoundException::class]);
     $this->event->setParam('exception', new \InvalidArgumentException('An error'));
     $httpExceptionListener->onDispatchError($this->event);
     $this->assertInstanceOf(Response::class, $this->event->getResponse());
     $this->assertEquals('An error', $this->event->getResponse()->getReasonPhrase());
     $this->assertTrue($this->event->propagationIsStopped());
 }