private function createEvent($pathInfo = '/some-path/')
{
$this->request = $this->createMock('Symfony\\Component\\HttpFoundation\\Request');
$this->request->expects($this->any())->method('getPathInfo')->willReturn($pathInfo);
$event = $this->createMock('Symfony\\Component\\HttpKernel\\Event\\GetResponseEvent');
$event->expects($this->any())->method('getRequest')->willReturn($this->request);
return $event;
}