@Test
@SuppressWarnings("unchecked")
public void link() {

    final GuidedDecisionTableView.Presenter dtPresenter2 = mock(GuidedDecisionTableView.Presenter.class);
    final GuidedDecisionTableView.Presenter dtPresenter3 = mock(GuidedDecisionTableView.Presenter.class);
    final Set<GuidedDecisionTableView.Presenter> dtPresenters = new HashSet<GuidedDecisionTableView.Presenter>() {
        {
            add(dtPresenter);
            add(dtPresenter2);
            add(dtPresenter3);
        }
    };
    when(dtPresenter.getModel()).thenReturn(model1);
    when(dtPresenter2.getModel()).thenReturn(model2);
    when(dtPresenter3.getModel()).thenReturn(model3);
    dtPresenter.link(dtPresenters);
    verify(linkManager,
           times(1)).link(eq(model1),
                          eq(model2),
                          any(LinkFoundCallback.class));
    verify(linkManager,
           times(1)).link(eq(model1),
                          eq(model3),
                          any(LinkFoundCallback.class));
}