for (int i = 0; i < workInfos.length; i++) {
workInfos[i].getExecutorFeedingTimerTask().cancel();
}
Thread.currentThread().sleep(SLOP + DELAY);
assertEquals(COUNT, counter.get());
transactionContext.rollback();
Thread.currentThread().sleep(SLOP + DELAY);
// Catches up with two periods.
assertEquals(3 * COUNT, counter.get());
}