meta.add(HttpHeaders.LINK, "<http://next>;rel=next");
meta.add(HttpHeaders.LINK, "<http://prev>;rel=prev");
assertTrue(ri.hasLink("next"));
Link next = ri.getLink("next");
assertNotNull(next);
assertTrue(ri.hasLink("prev"));
Link prev = ri.getLink("prev");
assertNotNull(prev);
Set<Link> links = ri.getLinks();
assertTrue(links.contains(next));
assertTrue(links.contains(prev));
assertEquals("http://next", next.getUri().toString());
assertEquals("next", next.getRel());
assertEquals("http://prev", prev.getUri().toString());
assertEquals("prev", prev.getRel());
}