@Test
public void testAdd_IncludeTableName() {

    IdAddingSolrUpdateWriter updateWriter = new IdAddingSolrUpdateWriter(
            UNIQUE_KEY_FIELD, DOCUMENT_ID, "tableNameField", TABLE_NAME, updateCollector);
    
    updateWriter.add(solrDoc);
    verify(solrDoc).addField(UNIQUE_KEY_FIELD, DOCUMENT_ID);
    verify(solrDoc).addField("tableNameField", TABLE_NAME);
    verify(updateCollector).add(DOCUMENT_ID, solrDoc);
}