public function testAddType()
 {
     $this->object = new ChoiceType();
     $this->assertEquals(array(), $this->object->getTypes());
     $type = new StringType();
     $this->assertMethodChaining($this->object->addType('string', $type), 'addType');
     $this->assertEquals(array('string' => $type), $this->object->getTypes());
 }