/**
  * @expectedException RuntimeException
  * @expectedExceptionMessage A streaming iterator cannot be rewinded.
  */
 public function testRewindException()
 {
     $message = $this->getMock('Riak\\Client\\ProtoBuf\\RpbListKeysResp', [], [], '', false);
     $this->client->expects($this->once())->method('receiveMessage')->willReturn($message)->with($this->equalTo($this->stream), $this->equalTo($this->messageCode));
     $this->instance->rewind();
     $this->instance->rewind();
 }
 /**
  * {@inheritdoc}
  */
 public function rewind()
 {
     $this->iterator->rewind();
     parent::rewind();
 }