/**
  * @dataProvider getNextLinkableData
  */
 public function testGetNextLinkable($expected, $path, $anchor = null, $depth = null)
 {
     $next = $this->helper->getNextLinkable($path, $anchor, $depth);
     if (null === $expected) {
         $this->assertNull($next);
     } else {
         $this->assertInstanceOf('Symfony\\Cmf\\Bundle\\CoreBundle\\Tests\\Resources\\Document\\RouteAware', $next);
         $this->assertEquals($expected, $next->getId());
     }
 }