public function testNewAndLoadError()
 {
     $this->client->addMockOnce('GET', 'http://www.example.com/missing', 'Error text', array('status' => 404));
     try {
         $graph = EasyRdf_Graph::newAndLoad('http://www.example.com/missing', 'turtle');
         $this->fail('404 should lead to exception');
     } catch (EasyRdf_Http_Exception $e) {
         $this->assertEquals(404, $e->getCode());
         $this->assertEquals('Error text', $e->getBody());
     }
 }