### Question:
RowProducer { public void finished() { rowSet.setDone(); } RowProducer( StepInterface stepInterface, RowSet rowSet ); void putRow( RowMetaInterface rowMeta, Object[] row ); boolean putRow( RowMetaInterface rowMeta, Object[] row, boolean block ); boolean putRowWait( RowMetaInterface rowMeta, Object[] rowData, long time, TimeUnit tu ); void finished(); RowSet getRowSet(); void setRowSet( RowSet rowSet ); StepInterface getStepInterface(); void setStepInterface( StepInterface stepInterface );  }### Answer:
@Test public void testFinished() throws Exception { rowProducer.finished(); verify( rowSet, times( 1 ) ).setDone(); }