UndoLink undoLink = mock(UndoLink.class);
DocumentId documentId = new DocumentId(new Long(0), "");
when(undoLinkProvider.get()).thenReturn(undoLink);
// When:
MergeOptions opts = MergeOptions.allFuzzy();
opts.setDifferentProject(MergeRule.REJECT);
opts.setDifferentDocument(MergeRule.IGNORE_CHECK);
presenter.proceedToMergeTM(100, opts);
verify(dispatcher).execute(transMemoryMergeCaptor.capture(),
callbackCaptor.capture());
AsyncCallback<UpdateTransUnitResult> callback =