### Question:
URIUtils { public static String getPath(String basePath, String... parts) { StringJoiner stringJoiner = new StringJoiner(File.separator); stringJoiner.add(basePath); for (String part : parts) { stringJoiner.add(part); } return stringJoiner.toString(); } private  URIUtils(); static URI getUri(String basePath, String... parts); static String getPath(String basePath, String... parts); static String constructDownloadUrl(String baseUrl, String rawTableName, String segmentName); static String encode(String string); static String decode(String string);  }### Answer:
@Test public void testGetPath() { assertEquals(URIUtils.getPath("http: assertEquals(URIUtils.getPath("http: assertEquals(URIUtils.getPath("http: assertEquals(URIUtils.getPath("/foo/bar", "table", "segment+%25"), "/foo/bar/table/segment+%25"); assertEquals(URIUtils.getPath("file:/foo/bar", "table", "segment+%25"), "file:/foo/bar/table/segment+%25"); }