### Question:
UriInfoImpl implements UriInfo { @Override public URI relativize(URI uri) { URI resolved = HttpUtils.resolve(getBaseUriBuilder(), uri); return HttpUtils.relativize(getRequestUri(), resolved); } @SuppressWarnings("unchecked")  UriInfoImpl(Message m);  UriInfoImpl(Message m, MultivaluedMap<String, String> templateParams); URI getAbsolutePath(); UriBuilder getAbsolutePathBuilder(); URI getBaseUri(); UriBuilder getBaseUriBuilder(); String getPath(); String getPath(boolean decode); List<PathSegment> getPathSegments(); List<PathSegment> getPathSegments(boolean decode); MultivaluedMap<String, String> getQueryParameters(); MultivaluedMap<String, String> getQueryParameters(boolean decode); URI getRequestUri(); UriBuilder getRequestUriBuilder(); MultivaluedMap<String, String> getPathParameters(); MultivaluedMap<String, String> getPathParameters(boolean decode); List<Object> getMatchedResources(); List<String> getMatchedURIs(); List<String> getMatchedURIs(boolean decode); @Override URI relativize(URI uri); @Override URI resolve(URI uri);  }### Answer:
@Test public void testRelativize() { UriInfoImpl u = new UriInfoImpl( mockMessage("http: assertEquals("Wrong Request Uri", "http: u.getRequestUri().toString()); URI relativized = u.relativize(URI.create("http: assertEquals("../d/e", relativized.toString()); }