operationIds.add(new OperationId(nodeName, "e1"));
final MasterOperation leaderOperation = mock(MasterOperation.class);
when(leaderOperation.execute(_context, EMPTY_LIST)).thenReturn(operationIds);
setupExecutionInstruction(leaderOperation, ExecutionInstruction.EXECUTE);
when(_queue.peek()).thenReturn(leaderOperation).thenAnswer(new SleepingAnswer());
when(_protocol.isNodeOperationQueued(operationIds.get(0))).thenReturn(false);
OperationWatchdog watchdog = mock(OperationWatchdog.class);
when(_queue.moveOperationToWatching(leaderOperation, operationIds)).thenReturn(watchdog);