public function testViewlessListing()
{
$this->setRequest(Request::create('/'));
$contentType = $this->getService('storage')->getContentType('pages');
$contentType['viewless'] = true;
$storage = $this->getMockStorage();
$storage->expects($this->once())->method('getContentType')->will($this->returnValue($contentType));
$this->setService('storage', $storage);
$this->setExpectedException('Symfony\\Component\\HttpKernel\\Exception\\HttpException', 'not found');
$response = $this->controller()->listing($this->getRequest(), 'pages');
$this->assertTrue($response instanceof TemplateResponse);
}