### Question:
HttpUtils { static byte[] gzip(byte[] data) throws IOException { return gzip(data, Deflater.DEFAULT_COMPRESSION); } private  HttpUtils();   }### Answer:
@Test public void gzip() throws IOException { byte[] data = "foo bar baz".getBytes(StandardCharsets.UTF_8); String result = new String(HttpUtils.gunzip(HttpUtils.gzip(data)), StandardCharsets.UTF_8); Assertions.assertEquals("foo bar baz", result); }