TaskAdminListPresenter extends AbstractTaskListPresenter<TaskAdminListViewImpl> { @Override public void createListBreadcrumb() { setupListBreadcrumb(placeManager, org.jbpm.workbench.common.client.resources.i18n.Constants.INSTANCE.Manage_Tasks()); }  @WorkbenchMenu void getMenus(final Consumer<Menus> menusConsumer); @Override void createListBreadcrumb(); @Override void setupDetailBreadcrumb(String detailLabel); @Inject void setFilterSettingsManager(final TaskAdminListFilterSettingsManager filterSettingsManager);  }
@Test public void testListBreadcrumbCreation() { presenter.createListBreadcrumb(); ArgumentCaptor<Command> captureCommand = ArgumentCaptor.forClass(Command.class); verify(breadcrumbs).clearBreadcrumbs(PERSPECTIVE_ID); verify(breadcrumbs).addBreadCrumb(eq(PERSPECTIVE_ID), eq(commonConstants.Home()), captureCommand.capture()); captureCommand.getValue().execute(); verify(placeManager).goTo(PerspectiveIds.HOME); verify(breadcrumbs).addBreadCrumb(eq(PERSPECTIVE_ID), eq(commonConstants.Manage_Tasks()), eq(Commands.DO_NOTHING)); verifyNoMoreInteractions(breadcrumbs); }