### Question:
TableInfoDataSet implements IDataSet { public synchronized boolean next(IMessageHandler msgHandler) { if (_curRow >= _data.length - 1) { return false; } ++_curRow; return true; } TableInfoDataSet();  TableInfoDataSet(ITableInfo ti); final int getColumnCount(); DataSetDefinition getDataSetDefinition(); synchronized void setTableInfo(ITableInfo ti); synchronized boolean next(IMessageHandler msgHandler); synchronized Object get(int columnIndex);  }### Answer:
@Test public final void testNext() { mockHelper.replayAll(); classUnderTest.setTableInfo(mockTableInfo); for (int i = 0; i < 6; i++) { assertTrue(classUnderTest.next(null)); } assertFalse(classUnderTest.next(null)); mockHelper.verifyAll(); }