}
@SuppressWarnings("unchecked")
@Test
public void testWriteUpdate() {
PartialUpdate update = new PartialUpdate("id", "123");
update.add("language", "java");
update.add("since", 1995);
SolrInputDocument solrDocument = new SolrInputDocument();
converter.write(update, solrDocument);
Assert.assertEquals(update.getIdField().getValue(), solrDocument.getFieldValue(update.getIdField().getName()));
Assert.assertTrue(solrDocument.getFieldValue("since") instanceof Map);
Assert.assertEquals(1995, ((Map<String, Object>) solrDocument.getFieldValue("since")).get("set"));
}