Indexer indexer = Indexer.createIndexer("index name", conf, "record", mapper, tablePool, null, solrDocumentWriter);
IndexingEventListener indexingEventListener = new IndexingEventListener(indexer, TABLE_A, false);
List<KeyValue> kvs = Lists.newArrayList(new KeyValue(Bytes.toBytes("row1"), Bytes.toBytes("cf"),
Bytes.toBytes("qual"), Bytes.toBytes("val")));
SepEvent event = new SepEvent(Bytes.toBytes(TABLE_A), Bytes.toBytes("row1"), kvs, null);
indexingEventListener.processEvents(Collections.singletonList(event));
ArgumentCaptor<Map> addedDocumentsCaptor = ArgumentCaptor.forClass(Map.class);
verify(solrDocumentWriter).add(eq(-1), addedDocumentsCaptor.capture());
Map<String, SolrInputDocument> addedDocuments = addedDocumentsCaptor.getValue();