### Question:
UriInfoImpl implements UriInfo { public URI getRequestUri() { String path = getAbsolutePathAsString(); String queries = (String)message.get(Message.QUERY_STRING); if (queries != null) { path += "?" + queries; } return URI.create(path); } @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 testGetRequestURI() { UriInfo u = new UriInfoImpl(mockMessage("http: null); assertEquals("Wrong request uri", "http: u.getRequestUri().toString()); }
@Test public void testGetRequestURIWithEncodedChars() { UriInfo u = new UriInfoImpl(mockMessage("http: null); assertEquals("Wrong request uri", "http: u.getRequestUri().toString()); }