public function testGetProperty()
 {
     $code = new PhpClass();
     $code->setPropertyCollection(new PropertyCollection(array(new Property(array('name' => 'test', 'value' => 1)))));
     $this->assertInstanceOf('\\ClassGeneration\\PropertyCollection', $code->getProperty('test'));
     $this->assertCount(1, $code->getProperty('test'));
     $this->assertEquals('test', $code->getProperty('test')->current()->getName());
 }