@Test
public void testAdd_RowField() {

    RowAndFamilyAddingSolrUpdateWriter updateWriter = new RowAndFamilyAddingSolrUpdateWriter("_row_", null,
            uniqueKeyFormatter, keyValue, delegateWriter);
    
    byte[] rowBytes = Bytes.toBytes("_row_");
    
    doReturn(rowBytes).when(keyValue).getRowArray();
    doReturn("_rowkey_").when(uniqueKeyFormatter).formatRow(any(byte[].class));
    updateWriter.add(solrDocument);
    
    verify(solrDocument).addField("_row_", "_rowkey_");
    verify(delegateWriter).add(solrDocument);
}