public function testChainRouteAssembling()
 {
     $stack = new TreeRouteStack();
     $stack->addPrototype('bar', array('type' => 'literal', 'options' => array('route' => '/bar')));
     $stack->addRoute('foo', array('type' => 'literal', 'options' => array('route' => '/foo'), 'chain_routes' => array('bar')));
     $this->assertEquals('/foo/bar', $stack->assemble(array(), array('name' => 'foo')));
 }