public function testLibraryBasedRoute()
{
$route = Router::connect('/{:library}/{:controller}/{:action}', array('library' => 'app'), array('persist' => array('library')));
$expected = '/app/hello/world';
$result = Router::match(array('controller' => 'hello', 'action' => 'world'));
$this->assertEqual($expected, $result);
$expected = '/myapp/hello/world';
$result = Router::match(array('library' => 'myapp', 'controller' => 'hello', 'action' => 'world'));
$this->assertEqual($expected, $result);
}