### Question:
UrlUtil { public static URL appendEncodedPath(final URL url, final String path) { requireNonNull(url, "url"); if (path == null || path.isEmpty()) return url; return appendEncodedPath(url, Collections.singletonList(path)); } private  UrlUtil(); static URL canonicalizeURL(final URL url); static File getFile(final URL url); static URL appendEncodedPath(final URL url, final String path); static URL appendNonEncodedPath(final URL url, final String path); static final URI urlToUri(final URL url); static File getFileFromJarUrl(final URL url); static URL getFileUrlFromJarUrl(final URL url); static final String PROTOCOL_FILE; static final String PROTOCOL_JAR; }### Answer:
@Test public void appendPath_encoded() throws Exception { logger.debug("[{}]appendPath_encoded: entered.", Integer.toHexString(identityHashCode(this))); final String encodedPath = "/%23Tag"; final URL url = new URI("file", "/tmp/UrlUtilTest/parentFolder", null).toURL(); final String expected = "file:/tmp/UrlUtilTest/parentFolder/%23Tag"; final URL actual = UrlUtil.appendEncodedPath(url, encodedPath); assertEquals(expected, actual.toString()); }