@Test public void shouldPopulatePathListWithChosenFile() { setUpPanelWithUserLibrary(ENABLED); XQueryFile file = XQueryElementFactory.createPhysicalFile(getProject(), "()"); panel.onFileChosen(file.getVirtualFile()); String[] contents = window.list(PATH_LIST_NAME).contents(); assertThat(contents.length, is(1)); assertThat(contents[0], is(file.getVirtualFile().getPresentableUrl())); }