@Test
void parseBody() throws Throwable {

    var request = new RequestImpl(null, null);
    request.contentType = ContentType.TEXT_XML;
    var exchange = new HttpServerExchange(null);
    byte[] body = Strings.bytes("<xml/>");
    exchange.putAttachment(RequestBodyReader.REQUEST_BODY, new RequestBodyReader.RequestBody(body, null));
    parser.parseBody(request, exchange);
    assertThat(request.body()).hasValue(body);
}