public function testGetUnknownDocumentFromDatabase()
{
$db = new HTTP\SocketClient();
$response = $db->request('GET', '/' . $this->getTestDatabase() . '/not_existant');
$this->assertTrue($response instanceof HTTP\ErrorResponse);
$this->assertSame(404, $response->status);
$this->assertSame(array('error' => 'not_found', 'reason' => 'missing'), $response->body);
}