private function getContainer()
{
$routeCollection = new RouteCollection();
$routeCollection->add('foo', new Route('foo'));
$router = $this->getMockBuilder('Symfony\\Component\\Routing\\RouterInterface')->getMock();
$router->expects($this->any())->method('getRouteCollection')->will($this->returnValue($routeCollection));
$loader = $this->getMockBuilder('Symfony\\Bundle\\FrameworkBundle\\Routing\\DelegatingLoader')->disableOriginalConstructor()->getMock();
$container = $this->getMockBuilder('Symfony\\Component\\DependencyInjection\\ContainerInterface')->getMock();
$container->expects($this->once())->method('has')->with('router')->will($this->returnValue(true));
$container->method('get')->will($this->returnValueMap(array(array('router', 1, $router), array('controller_name_converter', 1, $loader))));
return $container;
}