public function testRefresh()
 {
     $client = $this->getMock('Ekino\\HalClient\\HttpClient\\HttpClientInterface');
     $client->expects($this->exactly(1))->method('get')->will($this->returnCallback(function ($url) {
         if ($url == 'http://propilex.herokuapp.com') {
             return new HttpResponse(200, array('Content-Type' => 'application/hal+json'), file_get_contents(__DIR__ . '/../fixtures/entry_point.json'));
         }
     }));
     $resource = new Resource($client, array(), array('self' => array('href' => 'http://propilex.herokuapp.com')));
     $this->assertNull($resource->get('field'));
     $resource->refresh();
     $this->assertEquals($resource->get('field'), 'value');
 }