UriBuilder { public static UriBuilder uriBuilderFrom(String uri) { Preconditions.checkNotNull(uri, "uri is null"); try { return new UriBuilder(new URI(uri)); } catch (URISyntaxException e) { throw new RuntimeException(e); } } private  UriBuilder(); private  UriBuilder(URI previous); static UriBuilder uriBuilder(); static UriBuilder uriBuilderFrom(String uri); static UriBuilder uriBuilderFrom(URI uri); UriBuilder addParameter(String name, Boolean bool); UriBuilder addParameter(String name, Iterable<String> values); UriBuilder addParameter(String name, Number number); UriBuilder addParameter(String name, String... values); UriBuilder appendPath(Object path); UriBuilder appendPath(String path); UriBuilder appendPaths(Object... paths); URI build(); UriBuilder defaultPort(); UriBuilder host(String host); UriBuilder port(int port); URI raw(); UriBuilder replaceParameter(String name, Iterable<String> values); UriBuilder replaceParameter(String name, String... values); UriBuilder replacePath(String path); UriBuilder scheme(String scheme); String toString();  }
@Test public void testAcceptsHttpAndHttpScheme() { uriBuilderFrom(URI.create("http: uriBuilderFrom(URI.create("https: uriBuilderFrom(URI.create("HTTP: uriBuilderFrom(URI.create("HTTPS: }