@Test
public void testDeleteById() {

    RowAndFamilyAddingSolrUpdateWriter updateWriter = new RowAndFamilyAddingSolrUpdateWriter("_row_", null,
            uniqueKeyFormatter, keyValue, delegateWriter);
    byte[] rowBytes = Bytes.toBytes("_row_");
    doReturn("_rowkey_").when(uniqueKeyFormatter).formatRow(rowBytes);
    updateWriter.deleteById(uniqueKeyFormatter.formatRow(rowBytes));
    verify(delegateWriter).deleteById("_rowkey_");
}