assertEquals(url.toString(), urlString);
}
public void testServiceURLNamingAuthorityCustom() throws Exception {
String urlString = "service:test.foo://http://localhost";
ServiceURL url = new ServiceURL(urlString, 0);
assertEquals(url.getServiceType().toString(), "service:test.foo");
assertEquals(url.getHost(), "localhost");
assertEquals(url.getPort(), 0);
assertEquals(url.getURLPath(), "");
assertEquals(url.getUserInfo(), "");
assertEquals(url.getProtocol(), "http");
assertEquals(url.toString(), urlString);
assertTrue("foo".equals(url.getServiceType().getNamingAuthority()));
}