FileOutputStream out = null;
try {
in = new FileInputStream(file1);
out = new FileOutputStream(file2);
ZipUtil.transformEntry(in, name, new ByteArrayZipEntryTransformer() {
protected byte[] transform(ZipEntry zipEntry, byte[] input) throws IOException {
String s = new String(input);
assertEquals(new String(contents), s);
return s.toUpperCase().getBytes();
}