assertFalse("needsInput() should return false after finish() is called", defl
.needsInput());
}
while (!defl.finished()) {
x += defl.deflate(outPutBuf);
}
int totalOut = defl.getTotalOut();
int totalIn = defl.getTotalIn();
assertEquals(x, totalOut);
assertEquals(byteArray.length, totalIn);