### Question:
QueueRowSet extends BaseRowSet implements Comparable<IRowSet>, IRowSet { @Override public int size() { return buffer.size(); } QueueRowSet(); @Override Object[] getRow(); @Override Object[] getRowImmediate(); @Override Object[] getRowWait( long timeout, TimeUnit tu ); @Override boolean putRow( IRowMeta rowMeta, Object[] rowData ); @Override boolean putRowWait( IRowMeta rowMeta, Object[] rowData, long time, TimeUnit tu ); @Override int size(); @Override void clear();  }### Answer:
@Test public void testSize() throws Exception { assertEquals( 0, rowSet.size() ); rowSet.putRow( new RowMeta(), row ); assertEquals( 1, rowSet.size() ); rowSet.putRow( new RowMeta(), row ); assertEquals( 2, rowSet.size() ); rowSet.clear(); assertEquals( 0, rowSet.size() ); }