FileDownloadServlet extends BaseFilteredServlet { URI makeURI(final String path) throws URISyntaxException { final String encodedPath = FileServletUtil.encodeFileNamePart(path); return new URI(encodedPath); }    }
@Test public void testMakeURI() throws Exception { final String pathURI = "default: final URI uri = downloadServlet.makeURI(pathURI); assertEquals("/aa/src/main/resources/com/myspace/aa/vv+vv.drl", uri.getRawPath()); }