public function testToString()
{
$expected = join("\r\n", array('GET / HTTP/1.1', 'Host: localhost', 'Connection: Close', 'User-Agent: Mozilla/5.0', '', ''));
$result = (string) $this->request;
$this->assertEqual($expected, $result);
$result = $this->request->to('string');
$this->assertEqual($expected, $result);
}