### Question:
SnappyCompressionOutputStream extends CompressionOutputStream { @Override public void write( int b ) throws IOException { delegate.write( b ); } SnappyCompressionOutputStream( OutputStream out, CompressionProvider provider ); @Override void close(); @Override void write( int b );  }### Answer:
@Test public void testWrite() throws IOException { CompressionProvider provider = outStream.getCompressionProvider(); ByteArrayOutputStream out = new ByteArrayOutputStream(); outStream = new SnappyCompressionOutputStream( out, provider ); outStream.write( "Test".getBytes() ); }