public function testLoadRedirect()
 {
     // Check that loading the same URL as a redirected request
     // doesn't result in multiple HTTP GETs
     $this->client->addMockRedirect('GET', 'http://www.example.org/', 'http://www.example.com/', 301);
     $this->client->addMockRedirect('GET', 'http://www.example.com/', 'http://www.example.com/foaf.rdf', 303);
     $this->client->addMockOnce('GET', 'http://www.example.com/foaf.rdf', readFixture('foaf.json'));
     $graph = new EasyRdf_Graph();
     $this->assertSame(0, $graph->countTriples());
     $this->assertSame(14, $graph->load('http://www.example.org/', 'json'));
     $this->assertSame(14, $graph->countTriples());
     $this->assertSame(0, $graph->load('http://www.example.com/foaf.rdf', 'json'));
     $this->assertSame(14, $graph->countTriples());
     $this->assertStringEquals('Joe Bloggs', $graph->get('http://www.example.com/joe#me', 'foaf:name'));
 }