@Test
public void checkOnStartup() {

    final ObservablePath path = mock(ObservablePath.class);
    final PlaceRequest placeRequest = mock(PlaceRequest.class);
    final GuidedDecisionTableEditorContent content = makeDecisionTableContent();
    final GuidedDecisionTableView.Presenter dtPresenter = makeDecisionTable(path,
                                                                            path,
                                                                            placeRequest,
                                                                            content);
    presenter.onStartup(path,
                        placeRequest);
    assertEquals(path,
                 presenter.editorPath);
    assertEquals(placeRequest,
                 presenter.editorPlaceRequest);
    verify(view,
           times(1)).showLoading();
    verify(presenter,
           times(1)).loadDocument(eq(path),
                                  eq(placeRequest));
    verify(dtService,
           times(1)).loadContent(eq(path));
    verify(modeller,
           times(1)).addDecisionTable(eq(path),
                                      eq(placeRequest),
                                      eq(content),
                                      any(Boolean.class),
                                      eq(null),
                                      eq(null));
    verify(presenter,
           times(1)).registerDocument(eq(dtPresenter));
    verify(decisionTableSelectedEvent,
           times(1)).fire(dtSelectedEventCaptor.capture());
    verify(view,
           times(1)).hideBusyIndicator();
    final DecisionTableSelectedEvent dtSelectedEvent = dtSelectedEventCaptor.getValue();
    assertNotNull(dtSelectedEvent);
    assertTrue(dtSelectedEvent.getPresenter().isPresent());
    assertEquals(dtPresenter,
                 dtSelectedEvent.getPresenter().get());
}