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