DataSetDefEditorPresenter extends BaseEditor { private void loadDefinition() { services.call(getDefinitionCallback, getDefinitionErrorCallback).get(versionRecordManager.getCurrentPath()); }  @OnStartup void onStartup(final ObservablePath path,
                          final PlaceRequest place); @WorkbenchPartTitleDecoration IsWidget getTitle(); @WorkbenchPartTitle String getTitleText(); @WorkbenchMenu Menus getMenus(); @WorkbenchPartView Widget getWidget(); @OnMayClose boolean onMayClose(); @OnClose void onClose(); DataSetDef getDataSetDef(); int getCurrentModelHash(); void disposeWorkflow(); @Inject
    public DataSetDefScreenView view; }
@Test public void testLoadDefinition() throws Exception { final Exception loadContentException = mock(Exception.class); doThrow(loadContentException).when(dataSetDefVfsServices).load(any(Path.class)); presenter.loadContent(); verify(dataSetDefVfsServices, times(1)).get(any(Path.class)); verify(view, times(1)).hideBusyIndicator(); verify(view, times(1)).setWidget(editWorkflow); verify(editWorkflow, times(1)).edit(dataSetDef, columns); verify(editWorkflow, times(1)).showPreviewTab(); }