@Test
public void removeDecisionTable() {

    final GuidedDecisionTableView.Presenter dtPresenter = makeDecisionTable();
    final ArgumentCaptor<Command> afterRemovalCommandCaptor = ArgumentCaptor.forClass(Command.class);
    presenter.removeDecisionTable(dtPresenter);
    verify(view,
           times(1)).removeDecisionTable(eq(dtPresenter.getView()),
                                         afterRemovalCommandCaptor.capture());
    final Command afterRemovalCommand = afterRemovalCommandCaptor.getValue();
    assertNotNull(afterRemovalCommand);
    afterRemovalCommand.execute();
    verify(dtPresenter,
           times(1)).onClose();
    verify(presenter,
           times(1)).removeLinksForDecisionTable(eq(dtPresenter));
}