private void runLockSituation(final MasterOperation leaderOperation1, final MasterOperation leaderOperation2,
ExecutionInstruction instruction) throws Exception, InterruptedException {
String nodeName = "node1";
when(_protocol.getLiveNodes()).thenReturn(Arrays.asList(nodeName));
List<OperationId> operationIds = new ArrayList<OperationId>();
operationIds.add(new OperationId(nodeName, "e1"));
when(_protocol.isNodeOperationQueued(operationIds.get(0))).thenReturn(false);
OperationWatchdog watchdog = mock(OperationWatchdog.class);
when(_queue.moveOperationToWatching(leaderOperation1, operationIds)).thenReturn(watchdog);