public function testResponseToString()
{
$this->response->type(false);
$this->response->body = 'Document body';
ob_start();
echo $this->response;
$result = ob_get_clean();
$this->assertIdentical('Document body', $result);
$this->assertIdentical(array('HTTP/1.1 200 OK'), $this->response->testHeaders);
}