SavedFiltersPresenter implements RestoreDefaultFiltersMenuBuilder.SupportsRestoreDefaultFilters { @WorkbenchMenu public void getMenus(final Consumer<Menus> menusConsumer) { menusConsumer.accept(MenuFactory .newTopLevelCustomMenu(new RestoreDefaultFiltersMenuBuilder(this)).endMenu() .build()); }  @WorkbenchPartView IsElement getView(); @WorkbenchPartTitle String getTitle(); @PostConstruct void init(); @WorkbenchMenu void getMenus(final Consumer<Menus> menusConsumer); void setFilterSettingsManager(final FilterSettingsManager filterSettingsManager); void onSaveFilter(@Observes final SavedFilterAddedEvent event); void onRemoveSavedFilter(@Observes final SavedFilterRemoveEvent event); @Override void onRestoreDefaultFilters(); void onSaveDefaultActiveFilter(@Observes final SavedFilterAsDefaultActiveEvent event);  }
@Test public void testMenus() { presenter.getMenus(menus -> assertEquals(1, menus.getItems().size())); }