/**
* @test
*/
public function shouldCreateCorrectRouteObject()
{
$route = new Route('GET /test/page.html', 'A->index');
$this->assertEquals('|^/test/page.html$|', $route->getPattern());
$this->assertEquals(['GET'], $route->getMethods());
$this->assertEquals('sync', $route->getType());
$this->assertEquals('/test/page.html', $route->getUrl());
}