DomainUtils { public static String base(URI uri) { return uri.getPort() < 0 ? String.format("%s: : String.format("%s: }  static String base(URI uri);  }
@Test public void testExtractDomain() throws Exception { assertEquals("http: assertEquals("http: assertEquals("http: assertEquals("http: assertEquals("http: assertEquals("http: }