assertNotNull("Zip entry not found", ze);
byte[] firstHalf = new byte[contentBytes.length / 2];
byte[] secondHalf = new byte[contentBytes.length - firstHalf.length];
InputStream is = zipFile.getInputStream(ze);
is.read(firstHalf);
zipFile.closeWeakly();
assertTrue("Zip file not recorded.",
factory.getZipZiles().contains(zipFile));
assertFalse("Open zip file still recorded.",
factory.getOpenZipZiles().contains(zipFile));
is.read(secondHalf);