@Test
public void checksLinkPresence() throws Exception {

    MultivaluedMap<String, Object> headers = new MultivaluedHashMap<>();
    headers.put(LINK, newArrayList("< http://localhost:8080/x/y/z  >; rel=xxx"));
    ResponseImpl response = new ResponseImpl(200, "foo", null, headers);
    assertTrue(response.hasLink("xxx"));
    assertFalse(response.hasLink("yyy"));
}