UriResolver { public String getBaseUri() { return baseUrl.toExternalForm(); } UriResolver(String baseUri); String getBaseUri(); URL resolveAgainstBaseUri(String uriString); boolean isLocalBaseUri();  }
@Test public void uriResolverPercentSignTest() throws MalformedURLException { String absolutePathRoot = Paths.get("").toAbsolutePath().getRoot().toUri().toURL().toString(); UriResolver resolver = new UriResolver(absolutePathRoot + "%homepath%"); Assert.assertEquals(absolutePathRoot + "%25homepath%25", resolver.getBaseUri()); }