public function testShowWithHttpMethod()
{
$request = new Request();
$request->params = array('args' => array('post', '/'));
$command = new Route(compact('request') + array('routes' => $this->_config['routes'], 'classes' => array('response' => 'lithium\\tests\\mocks\\console\\MockResponse')));
$command->show();
$expected = "{\"controller\":\"Pages\",\"action\":\"view\"}\n";
$this->assertEqual($expected, $command->response->output);
}