@Test
public void checkOnOpenDocumentsInEditor() {

    final Path dtPath1 = PathFactory.newPath("file1",
                                             "file1Url");
    final Path dtPath2 = PathFactory.newPath("file2",
                                             "file2Url");
    final List<Path> dtPaths = new ArrayList<Path>() {{
        add(dtPath1);
        add(dtPath2);
    }};
    final ObservablePath dtPath = mock(ObservablePath.class);
    final PlaceRequest dtPlaceRequest = mock(PlaceRequest.class);
    final GuidedDecisionTableEditorContent dtContent = makeDecisionTableContent(0);
    final GuidedDecisionTableView.Presenter dtPresenter = makeDecisionTable(dtPath,
                                                                            dtPath,
                                                                            dtPlaceRequest,
                                                                            dtContent);
    when(modeller.addDecisionTable(any(ObservablePath.class),
                                   any(PlaceRequest.class),
                                   any(GuidedDecisionTableEditorContent.class),
                                   any(Boolean.class),
                                   any(Double.class),
                                   any(Double.class))).thenReturn(dtPresenter);
    presenter.onOpenDocumentsInEditor(dtPaths);
    verify(dtService,
           times(2)).loadContent(dtPathCaptor.capture());
    final List<Path> dtLoadedPaths = dtPathCaptor.getAllValues();
    assertNotNull(dtLoadedPaths);
    assertEquals(2,
                 dtLoadedPaths.size());
    assertContains(dtLoadedPaths,
                   dtPath1);
    assertContains(dtLoadedPaths,
                   dtPath2);
}