protected function getOptionsLoader()
{
$mock = $this->getMockBuilder('eZ\\Bundle\\EzPublishRestBundle\\Routing\\OptionsLoader')->setConstructorArgs(array($this->getRouteCollectionMapperMock()))->setMethods(array('import'))->getMock();
$mock->expects($this->any())->method('import')->with($this->anything(), $this->anything())->will($this->returnValue(new RouteCollection()));
return $mock;
}