// an unrelated task state change in the scheduler fires an event that requires this intrinsic
// lock. This causes a deadlock when the executor tries to acquire a lock held by the event
// fired.
pruner = prunerWithRealExecutor();
Command onDeleted = new Command() {
@Override
public void execute() {
// The goal is to verify that the call does not deadlock. We do not care about the outcome.
IScheduledTask b = makeTask("b", ASSIGNED);