public function testSimpleRouteMatching()
{
$route = new Route(array('template' => '/{:controller}'));
$result = $route->match(array('controller' => 'posts', 'action' => 'index'));
$this->assertEqual('/posts', $result);
$result = $route->match(array('controller' => 'users'));
$this->assertEqual('/users', $result);
$this->assertFalse($route->match(array('controller' => 'posts', 'action' => 'view')));
$this->assertFalse($route->match(array('controller' => 'posts', 'id' => 5)));
$this->assertFalse($route->match(array('action' => 'index')));
}