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