@Test
public void gzippedRequest() throws Exception {

  request.addParameter("path", "1234");
  request.setContent(compress(
      String.format("{\"query\": \"%s\"}", NOV_2).getBytes(StandardCharsets.UTF_8)));
  request.addHeader("Content-Encoding", "gzip");
  RestServletRequestParamReader reader = createReader(ImmutableMap.of("path", "1234"));
  Object[] params = reader.read();
  assertThat(params).hasLength(endpointMethod.getParameterClasses().length);
  assertThat(params).asList()
      .containsExactly(
          1234L,
          null,
          JAN_1,
          new TestResource(NOV_2))
      .inOrder();
}