LocalRequest implements HttpRequest { @Override public String getRemote() { return "localhost"; }  @Override String getRemote(); @Override String getMethod(); @Override String getScheme(); @Override String getHost(); @Override Optional<Integer> getPort(); @Override String getPath(); @Override String getQuery(); @Override String getProtocolVersion(); @Override Origin getOrigin(); @Override HttpHeaders getHeaders(); @Override String getContentType(); @Override Charset getCharset(); @Override HttpRequest withBody(); @Override HttpRequest withoutBody(); @Override byte[] getBody();  }
@Test void shouldResolveLocalhost() { final LocalRequest unit = unit(get("http: assertThat(unit.getRemote(), is("localhost")); }