/**
  * @covers \PHP\Manipulator\TokenContainer\Iterator::seek
  * @covers \PHP\Manipulator\TokenContainer\Iterator::<protected>
  */
 public function testSeekThrowsOutOfBoundsExceptionIfIteratorIsNotValid()
 {
     $container = $this->getTestContainerWithHoles();
     $iterator = new Iterator($container);
     try {
         $iterator->seek(8);
         $this->fail('Expected exception not thrown');
     } catch (\OutOfBoundsException $e) {
         $this->assertEquals('Position not found', $e->getMessage(), 'Wrong exception message');
     }
 }