@Test
public void checkGetAvailableDocumentPaths() {

    when(dtGraphService.listDecisionTablesInPackage(eq(presenter.editorPath))).thenReturn(new ArrayList<Path>() {{
        add(PathFactory.newPath("file1",
                                "file1Url"));
    }});
    presenter.getAvailableDocumentPaths((List<Path> result) -> {
        assertNotNull(result);
        assertEquals(1,
                     result.size());
        assertEquals("file1",
                     result.get(0).getFileName());
        assertEquals("file1Url",
                     result.get(0).toURI());
    });
    verify(view,
           times(1)).showLoading();
    verify(dtGraphService,
           times(1)).listDecisionTablesInPackage(eq(presenter.editorPath));
    verify(view,
           times(1)).hideBusyIndicator();
}