ZeroInitializedAdler32 extends Adler32 { @Override public long getValue() { long adler32 = super.getValue(); int adlerA = (int) adler32 & 0xffff; int adlerB = (int) adler32 >>> 16; int buggyA = (adlerA - 1) % 65521; int buggyB = ((adlerB - bytesUpdatedModAdler) % 65521); if (buggyB < 0) { buggyB += 65521; } if (buggyA < 0) { buggyA += 65521; } return (((buggyB << 16) | buggyA)) & 0xffffffffL; }  @Override void update(int b); @Override void update(byte[] b, int off, int len); @Override void update(byte[] b); void update(ByteBuffer buffer); @Override void reset(); @Override long getValue();  }
@Test public void testEmpty() { assertEquals(0, actual.getValue()); }