### Question:
HttpUtils { public static URI getSanitizedPath(UriInfo uriInfo) { return appendTrailingSlash(uriInfo.getAbsolutePath()); } private  HttpUtils(); static String readUrl(URL url, String charsetName); static URI appendTrailingSlash(URI uri); static URI getSanitizedPath(UriInfo uriInfo); static URI getDirectoryURI(UriInfo uriInfo);  }### Answer:
@Test public void testGetSanitizedPath() { new Expectations() {{ uriInfo.getAbsolutePath(); result = URI.create("http: }}; URI result = getSanitizedPath(uriInfo); Assert.assertEquals("http: }