UriUtils { public URI resolveWithBase (final URI base, final URI uri) { if (base.equals(uri)) { return uri; } else if (!uri.isAbsolute()) { return base.resolve(uri); } else { return uri; } } UriUtils(final DaoManager daoManager);  UriUtils(final DaoManager daoManager, final JBossConnectorDiscover jBossConnectorDiscover, boolean useHostnameToResolve); URI resolveWithBase(final URI base, final URI uri); URI resolve(final URI uri); URI resolve(final URI uri, final Sid accountSid); HttpConnector getHttpConnector();  }
@Test public void testResolveWithBase() { URI relativeUri = URI.create("/restcomm/recording.wav"); URI baseUri = URI.create("http: Assert.assertEquals("http: uriUtils.resolveWithBase(baseUri, relativeUri).toString()); }