@Test
public void testGetRequestInputStream() throws Exception {

  MockHttpServletRequest request = new MockHttpServletRequest();
  request.setContent(compress("test".getBytes(StandardCharsets.UTF_8)));
  request.addHeader("Content-Encoding", "gzip");
  InputStream stream = IoUtil.getRequestInputStream(request);
  assertThat(stream).isInstanceOf(GZIPInputStream.class);
  assertThat(IoUtil.readStream(stream)).isEqualTo("test");
}