### Question:
GzipCompressionInputStream extends CompressionInputStream { @Override public int read() throws IOException { GZIPInputStream gis = (GZIPInputStream) delegate; return gis.read(); } GzipCompressionInputStream( InputStream in, ICompressionProvider provider ); @Override void close(); @Override int read();  }### Answer:
@Test public void testRead() throws IOException { inStream = new GzipCompressionInputStream( createGZIPInputStream(), provider ) { }; inStream.read( new byte[ 100 ], 0, inStream.available() ); }