public function testRenderRelationElementWithPropertyPath()
 {
     $this->fieldDescription->expects($this->exactly(1))->method('getOption')->will($this->returnCallback(function ($value, $default = null) {
         if ($value == 'associated_property') {
             return 'foo';
         }
     }));
     $element = new \stdClass();
     $element->foo = 'bar';
     $this->assertEquals('bar', $this->twigExtension->renderRelationElement($element, $this->fieldDescription));
 }