resultMapper.map(result, solrUpdateWriter);
verify(solrUpdateWriter).add(solrInputDocCaptor.capture());
SolrInputDocument solrDocument = solrInputDocCaptor.getValue();
assertEquals(Sets.newHashSet("fieldA", "fieldB"), solrDocument.keySet());
SolrInputField fieldA = solrDocument.get("fieldA");
SolrInputField fieldB = solrDocument.get("fieldB");
assertEquals(Lists.newArrayList(42), fieldA.getValues());