{          System.out.println(new String(bOut.toByteArray()));
{
    private void testCompression(        int type)        throws IOException, PGPException    {        ByteArrayOutputStream bOut = new ByteArrayOutputStream();        PGPCompressedDataGenerator cPacket = new PGPCompressedDataGenerator(type);        OutputStream out = cPacket.open(bOut);        out.write("hello world!".getBytes());        cPacket.close();        PGPObjectFactory pgpFact = new PGPObjectFactory(bOut.toByteArray());        PGPCompressedData c1 = (PGPCompressedData)pgpFact.nextObject();        InputStream pIn = c1.getDataStream();        bOut.reset();        int ch;        while ((ch = pIn.read()) >= 0)        {            bOut.write(ch);        }        if (!areEqual(bOut.toByteArray(), "hello world!".getBytes()))        {          System.out.println(new String(bOut.toByteArray()));            fail("compression test failed");        }    }