### Question:
GZIPCompressionInputStream extends CompressionInputStream { @Override public void close() throws IOException { GZIPInputStream gis = (GZIPInputStream) delegate; gis.close(); } GZIPCompressionInputStream( InputStream in, CompressionProvider provider ); @Override void close(); @Override int read();  }### Answer:
@Test public void testClose() throws IOException { inStream = new GZIPCompressionInputStream( createGZIPInputStream(), provider ) { }; inStream.close(); }