### Question:
UriHelper { public static URI join(final URI collectionUri, final Object... components) { return join(collectionUri.toString(), components); }  static boolean areSame(final URI a, final URI b); static boolean areSameGitRepo(final URIish a, final URIish b); static boolean areSameGitRepo(final URI a, final URI b); static boolean hasPath(final URI uri); static boolean isWellFormedUriString(final String uriString); static URI join(final URI collectionUri, final Object... components); static URI join(final String collectionUrl, final Object... components); static String serializeParameters(final Map<String, String> parameters); static final String UTF_8; }### Answer:
@Test public void join_uriNoSlash_pathComponents() throws Exception { final URI collectionUri = URI.create("https: final URI actual = UriHelper.join(collectionUri, "_home", "About"); Assert.assertEquals(URI.create("https: }
@Test public void join_noSlash_pathComponents() throws Exception { final String collectionUrl = "https: final URI actual = UriHelper.join(collectionUrl, "_home", "About"); Assert.assertEquals(URI.create("https: }
@Test public void join_withSlash_pathComponents() throws Exception { final String collectionUrl = "https: final URI actual = UriHelper.join(collectionUrl, "_home", "About"); Assert.assertEquals(URI.create("https: }
@Test public void join_noSlash_queryString() throws Exception { final String collectionUrl = "https: final URI actual = UriHelper.join(collectionUrl, lifeUniverseEverything); Assert.assertEquals(URI.create("https: }
@Test public void join_withSlash_queryString() throws Exception { final String collectionUrl = "https: final URI actual = UriHelper.join(collectionUrl, lifeUniverseEverything); Assert.assertEquals(URI.create("https: }
@Test public void join_noSlash_pathAndQueryString() throws Exception { final String collectionUrl = "https: final URI actual = UriHelper.join(collectionUrl, "_home", "About", lifeUniverseEverything); Assert.assertEquals(URI.create("https: }
@Test public void join_withSlash_pathAndQueryString() throws Exception { final String collectionUrl = "https: final URI actual = UriHelper.join(collectionUrl, "_home", "About", lifeUniverseEverything); Assert.assertEquals(URI.create("https: }
@Test public void join_urlEncoding() throws Exception { final String collectionUrl = "https: final URI actual = UriHelper.join(collectionUrl, "_git", "Repo Name+With Spaces"); Assert.assertEquals(URI.create("https: }
@Test public void join_sampleApiCall() throws Exception { final String collectionUrl = "https: final QueryString qs = new QueryString("api-version", "2.0"); final URI actual = UriHelper.join(collectionUrl, "_apis", "projects", qs); Assert.assertEquals(URI.create("https: }