### Question:
CouchURIHelper { public URI getRootUri() { return this.rootUri; } CouchURIHelper(URI rootUri); URI getRootUri(); URI changesUri(Map<String, Object> query); URI bulkDocsUri(); URI revsDiffUri(); URI documentUri(String documentId); URI documentUri(String documentId, Map<String, Object> query); URI attachmentUri(String documentId, String attachmentId); URI attachmentUri(String documentId, Map<String, Object> query, String attachmentId);  }### Answer:
@Test public void buildDbUri() throws Exception { URI expected = new URI(uriBase + "/db_name"); URI actual = helper(path+"/db_name").getRootUri(); Assert.assertEquals(expected, actual); }
@Test public void buildEscapedDbUri() throws Exception { URI expected = new URI(uriBase + "/SDF@%23%25$%23)DFGKLDfdffdg%C3%A9"); URI actual = helper(path+"/SDF@#%$#)DFGKLDfdffdg\u00E9").getRootUri(); Assert.assertEquals(expected.toASCIIString(), actual.toASCIIString()); }