Request { public void setURI(URI uri) { if (uri == null) { throw new IllegalArgumentException("Missing URI."); } this.uri = uri.normalize(); } Request();  Request(RestClient client); URI getURI(); void setURI(URI uri); Method getMethod(); void setMethod(Method method); Map<String, String> getParameters(); void setParameter(String name, String value); void setParameters(Map<String, String> params); Map<String, String> getHeaders(); void setHeader(String name, String value); void setHeaders(Map<String, String> headers); void setContentLength(long len); InputStream getBody(); void setBody(InputStream body); long getBodyLength(); void setBodyLength(long bodyLength); @Deprecated void setConnectTimeout(int timeout); @Deprecated int getConnectTimeout(); @Deprecated void setReadTimeout(int timeout); @Deprecated int getReadTimeout(); RestClient getRestClient(); void setRestClient(RestClient restClient);  }
@Test public void testSetURI() throws Exception { Request req = new Request(); req.setURI(new URI("http: Assert .assertEquals("http: req.setURI(new URI("http: Assert .assertEquals("http: req.setURI(new URI("http: Assert .assertEquals("http: req.getURI().toString()); }