public function testConvertNoLayoutSpecifiedException()
{
$event = new GetResponseForExceptionEvent($this->mockKernel(), new Request(), HttpKernelInterface::MASTER_REQUEST, new NoLayoutSpecifiedException());
$listener = new ExceptionConverterListener();
$listener->onKernelException($event);
$exception = $event->getException();
$this->assertInstanceOf('Contao\\CoreBundle\\Exception\\InternalServerErrorHttpException', $exception);
$this->assertInstanceOf('Contao\\CoreBundle\\Exception\\NoLayoutSpecifiedException', $exception->getPrevious());
}