public function testParse()
{
$uri = self::$routePrefix . '/';
$request = Request::create($uri, 'GET');
$expectedMatchResult = array('_route' => 'ezpublish_rest_testRoute', '_controller' => '');
$this->getRouterMock()->expects($this->once())->method('matchRequest')->with($this->attributeEqualTo('pathInfo', '/api/test/v1/'))->will($this->returnValue($expectedMatchResult));
self::assertEquals($expectedMatchResult, $this->getRequestParser()->parse($uri));
}