RemoteResponse implements org.zalando.logbook.HttpResponse { @Override public org.zalando.logbook.HttpResponse withBody() throws IOException { state.updateAndGet(State::with); return this; }  @Override Origin getOrigin(); @Override String getProtocolVersion(); @Override int getStatus(); @Override HttpHeaders getHeaders(); @Override String getContentType(); @Override Charset getCharset(); @Override org.zalando.logbook.HttpResponse withBody(); @Override RemoteResponse withoutBody(); @Override byte[] getBody();  }
@Test void shouldNotSwallowDelegatesContentEncodingWhenTransformingEntity() throws IOException { entity.setContentEncoding("gzip"); unit.withBody(); assertThat(delegate.getEntity().getContentEncoding().getValue(), is("gzip")); }
@Test void shouldNotSwallowDelegatesChunkedFlagWhenTransformingEntity() throws IOException { entity.setChunked(true); unit.withBody(); assertThat(delegate.getEntity().isChunked(), is(true)); }