### Question:
Uri { public URI toJavaUri() { try { return new URI(toString()); } catch (URISyntaxException e) { throw new UriException(e); } } Uri(UriBuilder builder); @Inject(optional = true) static void setUriParser(UriParser uriParser); static Uri parse(String text); static Uri fromJavaUri(URI uri); URI toJavaUri(); Uri resolve(Uri relative); boolean isAbsolute(); String getScheme(); String getAuthority(); String getPath(); String getQuery(); Map<String, List<String>> getQueryParameters(); Collection<String> getQueryParameters(String name); String getQueryParameter(String name); String getFragment(); Map<String, List<String>> getFragmentParameters(); Collection<String> getFragmentParameters(String name); String getFragmentParameter(String name); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj);  }### Answer:
@Test public void toJavaUri() { URI javaUri = URI.create("http: Uri uri = Uri.parse("http: assertEquals(javaUri, uri.toJavaUri()); }