LocalRequest implements HttpRequest { void writeTo(final Entity entity, final HttpOutputMessage message) { state.updateAndGet(throwingUnaryOperator(state -> state.buffer(entity, message))); }  @Override HttpRequest withBody(); @Override HttpRequest withoutBody(); @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(); @Nullable @Override String getContentType(); @Override Charset getCharset(); @Override byte[] getBody();  }
@Test void writeTo() { final Entity entity = mock(Entity.class); final HttpOutputMessage message = mock(HttpOutputMessage.class); unit.writeTo(entity, message); assertThrows(UnsupportedOperationException.class, () -> unit.writeTo(entity, message)); }