public function testNestedArraysWithNestedAnnotation() {
$parser = $this
->createTestParser();
// Nested arrays with nested annotations
$result = $parser
->parse('@Name(foo={1,2, {"key"=@Name}})');
$annot = $result[0];
$this
->assertTrue($annot instanceof Name);
$this
->assertNull($annot->value);
$this
->assertEquals(3, count($annot->foo));
$this
->assertEquals(1, $annot->foo[0]);
$this
->assertEquals(2, $annot->foo[1]);
$this
->assertTrue(is_array($annot->foo[2]));
$nestedArray = $annot->foo[2];
$this
->assertTrue(isset($nestedArray['key']));
$this
->assertTrue($nestedArray['key'] instanceof Name);
}