### Question:
ZIPCompressionProvider implements CompressionProvider { @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 ); }