### Question:
SolrFieldAdder { public void addCurrencyField(SolrInputDocument doc, F field, BigDecimal value) { if (value != null) { 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 addCurrencyField() { SolrInputDocument doc = new SolrInputDocument(); fieldAdder.addCurrencyField(doc, JudgmentIndexField.MAXIMUM_MONEY_AMOUNT, new BigDecimal("12300.45")); assertSingleField(doc, "maximumMoneyAmount", new BigDecimal("12300.45")); }