### Question:
SearchModeSettingsResolverImpl implements SearchModeSettingsResolver, Serializable { public SearchModeSettings getSettings(SearchMode searchMode) { return settingsMap.get(searchMode); }  void setSettingsMap(Map<SearchMode, SearchModeSettings> settingsMap); SearchModeSettings getSettings(SearchMode searchMode);  }### Answer:
@Test public void getSettings() { SearchModeSettingsResolverImpl searchModeSettingsResolver = new SearchModeSettingsResolverImpl(); Map<SearchMode, SearchModeSettings> settingsMap = new HashMap<SearchMode, SearchModeSettings>(); SearchModeSettings actualSearchModeSettings = new SearchModeSettings(); settingsMap.put(SearchMode.BROWSE, actualSearchModeSettings); searchModeSettingsResolver.setSettingsMap(settingsMap); assertEquals(actualSearchModeSettings, searchModeSettingsResolver.getSettings(SearchMode.BROWSE)); }