public function testConstructMethodIsResource()
 {
     $data = array('resource' => true, 'description' => 'Heya', 'deprecated' => true, 'input' => 'My\\Form\\Type');
     $annot = new ApiDoc($data);
     $array = $annot->toArray();
     $this->assertTrue(is_array($array));
     $this->assertFalse(isset($array['filters']));
     $this->assertTrue($annot->isResource());
     $this->assertTrue($annot->getDeprecated());
     $this->assertEquals($data['description'], $array['description']);
     $this->assertEquals($data['input'], $annot->getInput());
 }