protected function addTemplatedRouteExpectation($routeName, $arguments, $returnValue)
{
$this->getTemplatedRouterMock()->expects($this->at($this->templatedRouterCallIndex++))->method('generate')->with($this->equalTo($routeName), $this->equalTo($arguments))->will($this->returnValue($returnValue));
}