### Question:
ZIPCompressionInputStream extends CompressionInputStream { @Override public int read() throws IOException { ZipInputStream zis = (ZipInputStream) delegate; if ( zis == null ) { throw new IOException( "Not a valid input stream!" ); } return zis.read(); } ZIPCompressionInputStream( InputStream in, CompressionProvider provider ); @Override void close(); @Override int read(); @Override Object nextEntry();  }### Answer:
@Test public void testRead() throws IOException { CompressionProvider provider = inStream.getCompressionProvider(); ByteArrayInputStream in = new ByteArrayInputStream( "Test".getBytes() ); inStream = new ZIPCompressionInputStream( in, provider ) { }; inStream.read( new byte[100], 0, inStream.available() ); }