ChannelBuffer buffer = ChannelBuffers.buffer(1024 * 1024);
for (int startDiff = -16384; startDiff < 16384; startDiff++) {
for (int commitDiff = -512; commitDiff < 512; commitDiff++) {
long st = zipper.lastStartTimestamp + startDiff;
long ct = zipper.lastCommitTimestamp + commitDiff;
buffer.clear();
zipper.encodeCommit(buffer, st, ct);
TSOMessage msg = dezipper.decodeMessage(buffer);
assertThat(msg, is(CommittedTransactionReport.class));
CommittedTransactionReport ctr = (CommittedTransactionReport) msg;
assertThat("startDiff: " + startDiff + " commitDiff: " + commitDiff, ctr.commitTimestamp, is(ct));