public function testPathEndIdentifier()
{
$snippet = $this->snippetFromMethod(Key::class, 'pathEndIdentifier');
$snippet->addLocal('key', $this->key);
$this->key->pathElement('Foo', 'Bar');
$this->key->pathElement('Foo', 'Baz');
$res = $snippet->invoke('lastPathElementIndentifier');
$this->assertEquals('Baz', $res->returnVal());
}