@Override
  public void close() throws IOException {
    GZIPOutputStream zos = (GZIPOutputStream) delegate;
    zos.close();
  }
@Test
  public void testClose() throws IOException {
    CompressionProvider provider = outStream.getCompressionProvider();
    ByteArrayOutputStream out = new ByteArrayOutputStream();
    outStream = new GZIPCompressionOutputStream( out, provider ) {
    };
    outStream.close();
    try {
      outStream.write( "This will throw an Exception if the stream is already closed".getBytes() );
      fail();
    } catch ( IOException e ) {
      //Success, The Output Stream was already closed
    }
  }