### Question:
SolrFieldFetcher { public List<String> fetchValues(SolrDocument doc, F field) { return fetchValues(doc, field.getFieldName()); }  String fetchValue(SolrDocument doc, F field); Long fetchLongValue(SolrDocument doc, F field); BigDecimal fetchCurrencyValue(SolrDocument doc, F field); LocalDate fetchDateValue(SolrDocument doc, F field); List<String> fetchValues(SolrDocument doc, F field); List<String> fetchValues(SolrDocument doc, F field, String postfix); List<Pair<String, List<String>>> fetchValuesWithAttributes(SolrDocument doc, F field); List<Pair<String, List<E>>> fetchValuesWithEnumedAttributes(SolrDocument doc, F field, Class<E> allowedAttributes);  }### Answer:
@Test public void fetchValues() { SolrDocument doc = new SolrDocument(); doc.addField("judge", "Jan Kowalski"); doc.addField("judge", "Adam Nowak"); List<String> actual = fieldFetcher.fetchValues(doc, JudgmentIndexField.JUDGE); assertEquals(2, actual.size()); assertTrue(actual.contains("Jan Kowalski")); assertTrue(actual.contains("Adam Nowak")); }
@Test public void fetchValues_FIELD_WITH_POSTFIX() { SolrDocument doc = new SolrDocument(); doc.addField("judgeWithRole_#_PRESIDING_JUDGE", "Jan Kowalski"); doc.addField("judgeWithRole_#_PRESIDING_JUDGE", "Jan Nowak"); doc.addField("judgeWithRole_#_REPORTING_JUDGE", "Adam Nowak"); List<String> actual = fieldFetcher.fetchValues(doc, JudgmentIndexField.JUDGE_WITH_ROLE, "PRESIDING_JUDGE"); assertEquals(2, actual.size()); assertTrue(actual.contains("Jan Kowalski")); assertTrue(actual.contains("Jan Nowak")); }