@Test
public void updateLinks() {

    final GuidedDecisionTableView.Presenter dtPresenter1 = makeDecisionTable();
    final GuidedDecisionTableView.Presenter dtPresenter2 = makeDecisionTable();
    final Set<GuidedDecisionTableView.Presenter> availableDecisionTables = new HashSet<GuidedDecisionTableView.Presenter>() {{
        add(dtPresenter1);
        add(dtPresenter2);
    }};
    when(presenter.isDecisionTableAvailable(eq(dtPresenter1))).thenReturn(true);
    when(presenter.getAvailableDecisionTables()).thenReturn(availableDecisionTables);
    presenter.updateLinks();
    verify(dtPresenter1,
           times(1)).link(eq(availableDecisionTables));
    verify(dtPresenter2,
           times(1)).link(eq(availableDecisionTables));
    verify(gridLayer,
           times(1)).refreshGridWidgetConnectors();
}