triggerRendezvous("reaper2");
// relatch the reaper next time round the loop so we can be sure it is not monkeying around
// with the transactions queue
triggerRendezvous("reaper1");
// the worker is still latched so we should still have one entry in the work queue
assertEquals(1, reaper.numberOfTransactions());
assertEquals(1, reaper.numberOfTimeouts());
// now let the worker process the work queue element -- it should not call cancel since the
// mock reapable wil not claim to be running
triggerRendezvous("reaperworker1");
// latch reaper worker again so we know it has finished processing the element