### Question:
UriHelper { public static boolean areSame(final URI a, final URI b) { if (a == null) { return b == null; } if (b == null) { return false; } if (!StringHelper.equalIgnoringCase(a.getScheme(), b.getScheme())) { return false; } if (!StringHelper.equalIgnoringCase(a.getHost(), b.getHost())) { return false; } final int aPort = normalizePort(a); final int bPort = normalizePort(b); if (aPort != bPort) { return false; } final String aPath = normalizePath(a); final String bPath = normalizePath(b); if (!StringHelper.equal(aPath, bPath)) { return false; } if (!StringHelper.equal(a.getQuery(), b.getQuery())) { return false; } if (!StringHelper.equal(a.getFragment(), b.getFragment())) { return false; } return true; }  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 areSame_sameInstance() throws Exception { final URI uri = URI.create("http: Assert.assertTrue(UriHelper.areSame(uri, uri)); }