InvocationContext localTxContext = buildLocalTxIc(ddgt);
ddgt.setCoinToss(0);
lockOwner.setCoinToss(1);
assert ddgt.wouldLose(lockOwner);
//this makes sure that we cannot acquire lock from the first try
Lock mockLock = mock(Lock.class);
when(lc.acquireLock(localTxContext.getLockOwner(), "k", SPIN_DURATION, TimeUnit.MILLISECONDS)).thenReturn(null).thenReturn(mockLock);
lockOwner.setRemote(false);