protected function performFakeRequest($uri, $type = HttpKernelInterface::MASTER_REQUEST)
{
$event = new GetResponseEvent($this->getMock('Symfony\\Component\\HttpKernel\\HttpKernelInterface'), Request::create($uri), $type);
$this->getEventListener()->onKernelRequest($event);
return $event->getRequest();
}