String expected = new String(exWriter.toByteArray());
// check the output to make sure it is what we expected.
// read the gzip file and verify the contents
DefaultCodec defaultCodec = new DefaultCodec();
InputStream defaultIn = defaultCodec.createInputStream(new FileInputStream(
f.getPath() + "/sub-foo.deflate"));
byte[] buf = new byte[1];
StringBuilder output = new StringBuilder();
while ((defaultIn.read(buf)) > 0) {