### Question:
SolrFieldAdder { public void addField(SolrInputDocument doc, F field, String value) { if (StringUtils.isNotBlank(value)) { doc.addField(field.getFieldName(), value); } }  void addField(SolrInputDocument doc, F field, String value); void addField(SolrInputDocument doc, F field, long value); void addField(SolrInputDocument doc, F field, String fieldPostfix, String value); void addCompositeField(SolrInputDocument doc, F field, List<String> values); void addDateField(SolrInputDocument doc, F field, LocalDate date); void addCurrencyField(SolrInputDocument doc, F field, BigDecimal value);  }### Answer:
@Test public void addField() { SolrInputDocument doc = new SolrInputDocument(); fieldAdder.addField(doc, JudgmentIndexField.CASE_NUMBER, "ABC1A"); assertSingleField(doc, "caseNumber", "ABC1A"); }
@Test public void addField_EMPTY() { SolrInputDocument doc = new SolrInputDocument(); fieldAdder.addField(doc, JudgmentIndexField.CASE_NUMBER, (String)null); fieldAdder.addField(doc, JudgmentIndexField.CASE_NUMBER, ""); assertNoFields(doc); }
@Test public void addField_DYNAMIC() { SolrInputDocument doc = new SolrInputDocument(); fieldAdder.addField(doc, JudgmentIndexField.JUDGE_WITH_ROLE, "PRESIDING_JUDGE", "Jan Kowalski"); assertSingleField(doc, "judgeWithRole_#_PRESIDING_JUDGE", "Jan Kowalski"); }