public function testThatRouteCollectionIsLoaded() {
$this->router
->setOption('resource_type', 'ResourceType');
$routeCollection = $this
->getMock('Symfony\\Component\\Routing\\RouteCollection');
$this->loader
->expects($this
->once())
->method('load')
->with('routing.yml', 'ResourceType')
->will($this
->returnValue($routeCollection));
$this
->assertSame($routeCollection, $this->router
->getRouteCollection());
}