defEmpty.setInput(emptyArray);
while (!(defEmpty.needsInput())) {
x += defEmpty.deflate(outPutBuf, x, outPutBuf.length - x);
}
defEmpty.finish();
while (!(defEmpty.finished())) {
x += defEmpty.deflate(outPutBuf, x, outPutBuf.length - x);
}
assertTrue(
"the total number of byte from deflate did not equal getTotalOut - inflate(byte)",
x == defEmpty.getTotalOut());