Extends
lithium\test\UnitSource
public function testRewind() {
$this->_recordSet[0];
$this->_recordSet->rewind();
$expected = array('id' => 1, 'data' => 'data1');
$this->assertEqual($expected, $this->_recordSet->current()->to('array'));
$this->_objectRecordSet[0];
$this->_objectRecordSet->rewind();
$result = $this->_objectRecordSet->current();
$this->assertEqual(1, $result->id);
$this->assertEqual('data1', $result->data);
}