UriBuilder implements Cloneable { @Override public UriBuilder clone() { UriBuilder clone = null; try { clone = (UriBuilder) super.clone(); } catch (CloneNotSupportedException e) { } return clone; } UriBuilder(URI base, String path);  UriBuilder(String base, String path); static String encode(String toEncode); UriBuilder queryParam(String name, Object... values); URI build(Object... values); static boolean isUnreserved(char character); @Override String toString(); @Override UriBuilder clone();  }
@Test void testClone() { UriBuilder uriBuilder = new UriBuilder("http: UriBuilder clonedUriBuilder = uriBuilder.clone(); assertNotNull(clonedUriBuilder); }