495496497498499500501502503504505
.assertStatus(HttpURLConnection.HTTP_OK) .assertHeader(HttpHeaders.CONTENT_ENCODING, "gzip"); MatcherAssert.assertThat( IOUtils.toString( new GZIPInputStream( new ByteArrayInputStream(resp.binary()) ), Charsets.UTF_8 ), Matchers.is(body) );