public function testConstruct() { $resource = new Resource(new Link('/test', 'self')); $this->assertEquals(array('_links' => array('self' => array('href' => '/test'))), $resource->asArray()); }