@Test
public void testActivateDocument() {

    final GuidedDecisionTableView.Presenter dtPresenter = mock(GuidedDecisionTableView.Presenter.class);
    final Overview overview = mock(Overview.class);
    final AsyncPackageDataModelOracle oracle = mock(AsyncPackageDataModelOracle.class);
    final GuidedDecisionTable52 model = mock(GuidedDecisionTable52.class);
    final Imports imports = mock(Imports.class);
    final GuidedDecisionTablePresenter.Access access = mock(GuidedDecisionTablePresenter.Access.class);
    final MultiPageEditor pageEditor = mock(MultiPageEditor.class);
    final boolean isEditable = true;
    doReturn(overview).when(dtPresenter).getOverview();
    doReturn(oracle).when(dtPresenter).getDataModelOracle();
    doReturn(model).when(dtPresenter).getModel();
    doReturn(imports).when(model).getImports();
    doReturn(access).when(dtPresenter).getAccess();
    doReturn(isEditable).when(access).isEditable();
    doReturn(pageEditor).when(presenter).getKieEditorWrapperMultiPage();
    doNothing().when(presenter).activateDocument(any(), any(), any(), any(), anyBoolean());
    presenter.activateDocument(dtPresenter);
    verify(dtPresenter).activate();
    verify(presenter).enableMenus(true);
    verify(presenter).addColumnsTab();
    verify(presenter).enableColumnsTab(dtPresenter);
    verify(presenter).activateDocument(dtPresenter, overview, oracle, imports, !isEditable);
}