snk.append(ackedmem.next()); // ack beg
snk.append(ackedmem.next()); // data
snk.append(ackedmem.next()); // ack end
snk.append(ackedmem.next()); // ack beg
Clock.sleep(10); // have to make sure it is not in the same millisecond
roll.rotate(); // we should have the first batch and part of the second
// one ack pending
assertEquals(1, node.getAckChecker().getPendingAckTags().size());
node.getAckChecker().checkAcks();
// no acks pending
assertEquals(0, node.getAckChecker().getPendingAckTags().size());