@Test
void body() {

    var request = new HTTPRequest(HTTPMethod.POST, "http://localhost/uri");
    request.body("text", ContentType.TEXT_PLAIN);
    assertThat(request.method).isEqualTo(HTTPMethod.POST);
    assertThat(request.contentType).isEqualTo(ContentType.TEXT_PLAIN);
    assertThat(request.headers).containsEntry(HTTPHeaders.CONTENT_TYPE, "text/plain; charset=utf-8");
    assertThat(request.body).isEqualTo(Strings.bytes("text"));
}