public function testResponseDocumentToString()
 {
     $httpHeaders = "HTTP/1.0 200 OK\r\nContent-Type: text/html\r\nAccept: application/json\r\n\r\n";
     $httpString = "<html>\r\n<body>\r\n    This is a test document\r\n</body>\r\n</html>";
     $zf2Response = \Zend\Http\PhpEnvironment\Response::fromString($httpHeaders . $httpString);
     $response = Response::create($zf2Response, array('DrestCommon\\Response\\Adapter\\ZendFramework2'));
     ob_start();
     ob_get_contents();
     echo $response;
     $actual = ob_get_contents();
     ob_end_clean();
     $this->assertEquals($httpString, $actual);
 }