Assert.assertEquals("bar", book.getAuthor());
RESTServiceDiscovery links = book.getRest();
Assert.assertNotNull(links);
Assert.assertEquals(7, links.size());
// self
AtomLink atomLink = links.getLinkForRel("self");
Assert.assertNotNull(atomLink);
Assert.assertEquals(url+"/book/foo", atomLink.getHref());
// update
atomLink = links.getLinkForRel("update");
Assert.assertNotNull(atomLink);
Assert.assertEquals(url+"/book/foo", atomLink.getHref());
// remove
atomLink = links.getLinkForRel("remove");
Assert.assertNotNull(atomLink);
Assert.assertEquals(url+"/book/foo", atomLink.getHref());
// list
atomLink = links.getLinkForRel("list");
Assert.assertNotNull(atomLink);
Assert.assertEquals(url+"/books", atomLink.getHref());
// add
atomLink = links.getLinkForRel("add");
Assert.assertNotNull(atomLink);
Assert.assertEquals(url+"/books", atomLink.getHref());
// comments
atomLink = links.getLinkForRel("comments");
Assert.assertNotNull(atomLink);
Assert.assertEquals(url+"/book/foo/comments", atomLink.getHref());
// comment collection
atomLink = links.getLinkForRel("comment-collection");
Assert.assertNotNull(atomLink);
Assert.assertEquals(url+"/book/foo/comment-collection", atomLink.getHref());
}