### Question:
GzipInterceptor implements Interceptor { public void disableGzip() { enabled.set(false); }  @Nonnull @Override Response intercept(@Nonnull final Chain chain); void enableGzip(); boolean isEnabledGzip(); void disableGzip();  }### Answer:
@Test void gzipDisabled() throws IOException, InterruptedException { interceptor.disableGzip(); RecordedRequest recordedRequest = newCall("/api/v2/users"); Assertions.assertThat(recordedRequest.getHeader("Content-Encoding")).isNull(); Assertions.assertThat(recordedRequest.getHeader("Accept-Encoding")).doesNotContain("gzip"); recordedRequest = newCall("/api/v2/write"); Assertions.assertThat(recordedRequest.getHeader("Content-Encoding")).isNull(); Assertions.assertThat(recordedRequest.getHeader("Accept-Encoding")).doesNotContain("gzip"); recordedRequest = newCall("/api/v2/query"); Assertions.assertThat(recordedRequest.getHeader("Content-Encoding")).isNull(); Assertions.assertThat(recordedRequest.getHeader("Accept-Encoding")).doesNotContain("gzip"); }