@Test
public void testReadRequestBody() throws Exception {

  MockHttpServletRequest request = new MockHttpServletRequest();
  request.setContent(compress("test".getBytes(StandardCharsets.UTF_8)));
  request.addHeader("Content-Encoding", "gzip");
  assertThat(IoUtil.readRequestBody(request)).isEqualTo("test");
}