DataSetDefEditorPresenter extends BaseEditor<DataSetDef, DefaultMetadata> { public DataSetDef getDataSetDef() { return workflow != null ? workflow.getDataSetDef() : null; }  @OnStartup void onStartup(final ObservablePath path,
                          final PlaceRequest place); @WorkbenchPartTitleDecoration IsWidget getTitle(); @WorkbenchPartTitle String getTitleText(); @WorkbenchMenu void getMenus(final Consumer<Menus> menusConsumer); @WorkbenchPartView Widget getWidget(); @OnMayClose boolean onMayClose(); @OnClose void onClose(); DataSetDef getDataSetDef(); int getCurrentModelHash(); void disposeWorkflow(); @Inject
    public DataSetDefScreenView view; }
@Test public void testGetDataSetDef() { assertEquals(dataSetDef, presenter.getDataSetDef()); }
@Test public void testGetDataSetDefNullified() { when(editWorkflow.getDataSetDef()).thenReturn(null); DataSetDef d = presenter.getDataSetDef(); assertNull(d); }