### Question:
Url implements Recyclable { @Override public void resetState() { protocol = null; full.setLength(0); hostname = null; port.setLength(0); pathname = null; search = null; }  @Nullable String getProtocol(); Url withProtocol(@Nullable String protocol); StringBuilder getFull(); Url appendToFull(CharSequence charSequence); @Nullable String getHostname(); Url withHostname(@Nullable String hostname); StringBuilder getPort(); Url withPort(int port); @Nullable String getPathname(); Url withPathname(@Nullable String pathname); @Nullable String getSearch(); Url withSearch(@Nullable String search); @Override void resetState(); void copyFrom(Url other); boolean hasContent();  }### Answer:
@Test void testResetState() { final Url url = newUrl(); url.resetState(); assertThat(toJson(url)).isEqualTo(toJson(new Url())); }