public function testSetAndGetPropertiesAndGenerateMethodsGettersAndSetters()
 {
     $code = new PhpClass();
     $code->setPropertyCollection(new PropertyCollection(array(new Property(array('name' => 'test1', 'value' => 1)))));
     $code->generateGettersAndSettersFromProperties();
     $this->assertCount(1, $code->getPropertyCollection());
     $this->assertEquals('test1', $code->getPropertyCollection()->current()->getName());
     $this->assertCount(2, $code->getMethodCollection());
     $this->assertEquals('getTest1', $code->getMethodCollection()->current()->getName());
     $this->assertEquals('setTest1', $code->getMethodCollection()->last()->getName());
 }