@Test
public void getsLinks() throws Exception {

    MultivaluedMap<String, Object> headers = new MultivaluedHashMap<>();
    Link link = new LinkBuilderImpl().uri("http://localhost:8080/x/y/z").rel("xxx").build();
    headers.put(LINK, newArrayList(link));
    ResponseImpl response = new ResponseImpl(200, "foo", null, headers);
    assertEquals(newHashSet(link), response.getLinks());
}