HttpUriBuilder { public HttpUriBuilder defaultPort() { this.port = -1; return this; } private  HttpUriBuilder(); private  HttpUriBuilder(URI previous); static HttpUriBuilder uriBuilder(); static HttpUriBuilder uriBuilderFrom(URI uri); HttpUriBuilder scheme(String scheme); HttpUriBuilder host(String host); HttpUriBuilder port(int port); HttpUriBuilder defaultPort(); HttpUriBuilder replacePath(String path); HttpUriBuilder appendPath(String path); HttpUriBuilder replaceParameter(String name, String... values); HttpUriBuilder addParameter(String name, String... values); String toString(); URI build();  }
@Test public void testDefaultPort() { URI uri = HttpUriBuilder.uriBuilderFrom(URI.create("http: .defaultPort() .build(); assertEquals(uri.toASCIIString(), "http: }