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