### Question:
GzipCompressionProvider implements ICompressionProvider { @Override public GzipCompressionOutputStream createOutputStream( OutputStream out ) throws IOException { return new GzipCompressionOutputStream( out, this ); }  @Override GzipCompressionInputStream createInputStream( InputStream in ); @Override boolean supportsInput(); @Override GzipCompressionOutputStream createOutputStream( OutputStream out ); @Override boolean supportsOutput(); @Override String getDescription(); @Override String getName(); @Override String getDefaultExtension();  }### Answer:
@Test public void testCreateOutputStream() throws IOException { GzipCompressionProvider provider = (GzipCompressionProvider) factory.getCompressionProviderByName( PROVIDER_NAME ); ByteArrayOutputStream out = new ByteArrayOutputStream(); GZIPOutputStream gos = new GZIPOutputStream( out ); GzipCompressionOutputStream outStream = new GzipCompressionOutputStream( out, provider ); assertNotNull( outStream ); out = new ByteArrayOutputStream(); GzipCompressionOutputStream ncis = provider.createOutputStream( out ); assertNotNull( ncis ); GzipCompressionOutputStream ncis2 = provider.createOutputStream( gos ); assertNotNull( ncis2 ); }