SavedFiltersPresenter implements RestoreDefaultFiltersMenuBuilder.SupportsRestoreDefaultFilters { protected void onRestoreFilters() { view.removeAllSavedFilters(); filterSettingsManager.resetDefaultSavedFilters(filters -> filters.forEach(f -> view.addSavedFilter(f))); }  @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 testOnRestoreFilters() { presenter.onRestoreFilters(); verify(view).removeAllSavedFilters(); verify(filterSettingsManager).resetDefaultSavedFilters(any()); }