@Test
public void testNonExistingRow() throws Exception {

    IndexerConf conf = new IndexerConfBuilder().table(TABLE_A).build();
    when(tableA.get(any(Get.class))).thenReturn(new Result());
    ResultToSolrMapper mapper = mock(ResultToSolrMapper.class);
    when(mapper.isRelevantKV(any(KeyValue.class))).thenReturn(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));
    verify(solrDocumentWriter).deleteById(-1, Collections.singletonList("row1"));
    verifyNoMoreInteractions(solrDocumentWriter);
}