PreferencesFxModel { public void saveSelectedCategory() { storageHandler.saveSelectedCategory(displayedCategory.get().getBreadcrumb()); } PreferencesFxModel(
      StorageHandler storageHandler,
      SearchHandler searchHandler,
      History history,
      Category[] categories
  ); List<Category> getCategories(); boolean isPersistWindowState(); void setPersistWindowState(boolean persistWindowState); boolean isSaveSettings(); void setSaveSettings(boolean saveSettings); History getHistory(); StorageHandler getStorageHandler(); boolean getHistoryDebugState(); void setHistoryDebugState(boolean historyDebugState); void saveSelectedCategory(); Category loadSelectedCategory(); void loadSettingValues(); Category getDisplayedCategory(); void setDisplayedCategory(Category displayedCategory); ReadOnlyObjectProperty<Category> displayedCategoryProperty(); String getSearchText(); void setSearchText(String searchText); StringProperty searchTextProperty(); List<Category> getFlatCategoriesLst(); SearchHandler getSearchHandler(); boolean getButtonsVisible(); BooleanProperty buttonsVisibleProperty(); void setButtonsVisible(boolean buttonsVisible); boolean isInstantPersistent(); BooleanProperty instantPersistentProperty(); void setInstantPersistent(boolean instantPersistent); TranslationService getTranslationService(); ObjectProperty<TranslationService> translationServiceProperty(); void setTranslationService(TranslationService translationService); double getDividerPosition(); DoubleProperty dividerPositionProperty(); void setDividerPosition(double dividerPosition); boolean isOneCategoryLayout(); void addEventHandler(EventType<PreferencesFxEvent> eventType,
                              EventHandler<? super PreferencesFxEvent> eventHandler); void removeEventHandler(EventType<PreferencesFxEvent> eventType,
                                 EventHandler<? super PreferencesFxEvent> eventHandler); void saveSettings(); void discardChanges();  }
@Test public void saveSelectedCategory() { }