### Question:
URIUtil { public static String join(URI base, String... segments) { return join(base != null ? base.toString() : null, segments); } private  URIUtil(); static String join(URI base, String... segments); static String join(String base, String... segments); static String toSlug(String value);  }### Answer:
@Test public void joinTest() { assertEquals("http: URIUtil.join("http: assertEquals("http: URIUtil.join("http: assertEquals("http: URIUtil.join("http: assertEquals("http: URIUtil.join("http: assertEquals("path/to", URIUtil.join("", "path", "to")); assertEquals("path/to", URIUtil.join((String) null, "path", "to")); assertEquals("http: URIUtil.join(URI.create("http: assertEquals("path", URIUtil.join((URI) null, "path")); assertEquals("http: URIUtil.join(URI.create("http: assertEquals("http: URIUtil.join(URI.create("http: }