DocumentDescriptor { public void setURI(final URI value) { uri = value; } DocumentDescriptor(final URI documentUri);  DocumentDescriptor(final URI documentUri,
            final RequestMethod requestMethod);  DocumentDescriptor(final URI documentUri,
            final RequestMethod requestMethod, final boolean force); void setURI(final URI value); URI getUri(); boolean isForceLoad(); RequestMethod getMethod(); FetchAttributes getAttributes(); void setAttributes(final FetchAttributes value); void addParameters(final Collection<KeyValuePair> pairs); void addParameter(final KeyValuePair pair); void addParamater(final String key, final Object value); void addParameters(final Map<String, Object> parameters); Collection<KeyValuePair> getParameters();  }
@Test public void testSetURI() throws Exception { final URI uri1 = new URI("http: final DocumentDescriptor descriptor = new DocumentDescriptor(uri1); Assert.assertEquals(uri1, descriptor.getUri()); final URI uri2 = new URI("http: descriptor.setURI(uri2); Assert.assertEquals(uri2, descriptor.getUri()); }