for (int i = 0; i != 10; i++)
{
CMSCompressedDataStreamGenerator gen = new CMSCompressedDataStreamGenerator();
ByteArrayOutputStream bOut = new ByteArrayOutputStream();
OutputStream cOut = gen.open(bOut, CMSCompressedDataStreamGenerator.ZLIB);
rand.nextBytes(testData);
cOut.write(testData);