Result result = encodeRecord(record);
mapper.map(result, solrUpdateWriter);
Assert.assertFalse(solrUpdateWriter.documents.isEmpty());
SolrInputDocument doc = solrUpdateWriter.documents.get(0);
Assert.assertTrue(doc.containsKey("a_string"));
Assert.assertEquals("myvalue", doc.get("a_string").getValue());
}
public Result encodeRecord(Record record) throws InterruptedException, RepositoryException {