### Question:
ParsedFilterConfigService { public Map<String, FilterBuilder> getSearchFiltersForRequest() { if (searchFilters == null) { throw new RuntimeException("Search filters not initialized yet. New request filters need to be " + "initialized via prepareFiltersForRequest() method. This is probably an implementation error."); } return searchFilters; }  Map<String, SemiParsedFilterConfig> getFilterConfigsForRequest(); Map<String, FilterBuilder> getSearchFiltersForRequest(); Map<String, IntervalRange> getRangeFiltersIntervals(); Set<String> getFilterNamesForDocumentField(String fieldName); boolean isCacheInitialized();  }### Answer:
@Test(expected = RuntimeException.class) public void getSearchFiltersForRequest_notInitialized() { ParsedFilterConfigService tested = getTested(); tested.getSearchFiltersForRequest(); }
@Test public void getSearchFiltersForRequest_initialized() { ParsedFilterConfigService tested = getTested(); tested.searchFilters = new HashMap<>(); tested.getSearchFiltersForRequest(); }