### Question:
ResponseBuilderImpl extends ResponseBuilder implements Cloneable { @Override public ResponseBuilder links(Link... links) { return addHeader(HttpHeaders.LINK, (Object[])links); } ResponseBuilderImpl(); private  ResponseBuilderImpl(ResponseBuilderImpl copy); Response build(); ResponseBuilder status(int statusCode); ResponseBuilder status(int statusCode, String reason); ResponseBuilder entity(Object e); ResponseBuilder type(MediaType type); ResponseBuilder type(String type); @Override ResponseBuilder language(Locale locale); ResponseBuilder language(String language); ResponseBuilder location(URI loc); ResponseBuilder contentLocation(URI location); ResponseBuilder tag(EntityTag tag); ResponseBuilder tag(String tag); ResponseBuilder lastModified(Date date); ResponseBuilder cacheControl(CacheControl cacheControl); @Override ResponseBuilder expires(Date date); @Override ResponseBuilder cookie(NewCookie... cookies); ResponseBuilder header(String name, Object value); @Override ResponseBuilder variant(Variant variant); @Override ResponseBuilder variants(List<Variant> variants); @Override ResponseBuilder clone(); @Override ResponseBuilder allow(String... methods); @Override ResponseBuilder allow(Set<String> methods); @Override ResponseBuilder encoding(String encoding); @Override ResponseBuilder entity(Object ent, Annotation[] anns); @Override ResponseBuilder link(URI href, String rel); @Override ResponseBuilder link(String href, String rel); @Override ResponseBuilder links(Link... links); @Override ResponseBuilder replaceAll(MultivaluedMap<String, Object> map); @Override ResponseBuilder variants(Variant... variants);  }### Answer:
@Test public void testLinks() { MetadataMap<String, Object> m = new MetadataMap<>(); m.add("Link", Link.valueOf("<http: m.add("Link", Link.valueOf("<http: RuntimeDelegateImpl delegate = new RuntimeDelegateImpl(); Link.Builder linkBuilder = delegate.createLinkBuilder(); Link prevLink = linkBuilder.uri("http: linkBuilder = delegate.createLinkBuilder(); Link nextLink = linkBuilder.uri("http: checkBuild(Response.ok().links(prevLink, nextLink).build(), 200, null, m); }