public function testListenerSkipUponSubRequestOnKernelResponse()
{
$responseEvent = new FilterResponseEvent($this->mockKernel(), new Request(), HttpKernelInterface::SUB_REQUEST, new Response());
$session = $this->getMock('Symfony\\Component\\HttpFoundation\\Session\\SessionInterface');
$session->expects($this->never())->method('getBag');
$connection = $this->getMock('Doctrine\\DBAL\\Connection', [], [], '', false);
$connection->expects($this->never())->method('prepare');
$connection->expects($this->never())->method('execute');
$listener = $this->getListener($session, $connection);
$listener->setContainer($this->mockContainerWithContaoScopes(ContaoCoreBundle::SCOPE_BACKEND));
$listener->onKernelResponse($responseEvent);
}