DataSetAuthoringHomePresenter { @OnStartup public void init() { clientServices.getPublicDataSetDefs(dataSetDefs -> { dataSetCount = dataSetDefs.size(); view.setDataSetCount(dataSetCount); }); } @Inject  DataSetAuthoringHomePresenter(final View view,
                                         final PlaceManager placeManager,
                                         final DataSetClientServices clientServices); @OnStartup void init(); @WorkbenchPartTitle String getTitle(); @WorkbenchPartView UberView<DataSetAuthoringHomePresenter> getView(); void newDataSet(); int getDataSetCount();  }
@Test public void testInit() { presenter.init(); verify(view, times(1)).setDataSetCount(5); }