### Question:
CompressionInputStream extends InputStream { @Override public int read() throws IOException { return delegate.read(); } CompressionInputStream( InputStream in, ICompressionProvider provider ); private  CompressionInputStream(); ICompressionProvider getCompressionProvider(); Object nextEntry(); @Override void close(); @Override int read(); @Override int read( byte[] b ); @Override int read( byte[] b, int off, int len );  }### Answer:
@Test public void testRead() throws IOException { ICompressionProvider provider = inStream.getCompressionProvider(); ByteArrayInputStream in = createTestInputStream(); inStream = new DummyCompressionIS( in, provider ); assertEquals( inStream.available(), inStream.read( new byte[ 100 ], 0, inStream.available() ) ); }