public function testToUrlOverride()
{
$request = new Request(array('scheme' => 'http', 'host' => 'localhost', 'port' => 80, 'query' => array('foo' => 'bar', 'bin' => 'baz')));
$result = $request->to('url', array('scheme' => 'https', 'host' => 'lithium.com', 'port' => 443, 'query' => array('foo' => 'you')));
$expected = 'https://lithium.com:443/?foo=you';
$this->assertEqual($expected, $result);
}