BpmnEditorPresenter extends BaseEditor<ProcessNode, Metadata> { @Override protected Supplier<ProcessNode> getContentSupplier() { return this::getContent; } @Inject  BpmnEditorPresenter(final BpmnEditorView baseView); @OnStartup void onStartup(final ObservablePath path,
                          final PlaceRequest place); @WorkbenchPartTitleDecoration IsWidget getTitle(); @WorkbenchPartTitle String getTitleText(); @WorkbenchMenu void getMenus(final Consumer<Menus> menusConsumer); @WorkbenchPartView UberView<BpmnEditorPresenter> getWidget(); @OnMayClose boolean onMayClose();  }
@Test public void testGetContentSupplier() { doReturn(processNode).when(presenter).getContent(); final Supplier<ProcessNode> contentSupplier = presenter.getContentSupplier(); assertEquals(processNode, contentSupplier.get()); }