@Test
public void testRowBasedIndexing_RowReadModeDynamic_NoRereadRequired() throws SolrServerException, IOException {

    IndexerConf conf = new IndexerConfBuilder().table(TABLE_A).rowReadMode(RowReadMode.DYNAMIC).build();
    ResultToSolrMapper mapper = createHbaseToSolrMapper(true);
    Indexer indexer = Indexer.createIndexer("index name", conf, "record", mapper, tablePool, null, solrDocumentWriter);
    IndexingEventListener indexingEventListener = new IndexingEventListener(indexer, TABLE_A, false);
    List<Cell> kvs = Lists.newArrayList((Cell)new KeyValue(Bytes.toBytes("row1"), Bytes.toBytes("cf"),
            Bytes.toBytes("qual"), Bytes.toBytes("value")));
    SepEvent event = new SepEvent(Bytes.toBytes(TABLE_A), Bytes.toBytes("row1"), kvs, null);
    indexingEventListener.processEvents(Collections.singletonList(event));
    ArgumentCaptor<Map> arg = ArgumentCaptor.forClass(Map.class);
    verify(solrDocumentWriter).add(eq(-1), arg.capture());
    Map<String,SolrInputDocument> addedDocuments = arg.getValue();
    assertEquals(1, addedDocuments.size());
    assertEquals("row1", addedDocuments.get("row1").getFieldValue("id"));
    verifyZeroInteractions(tableA, tableB);
}