public function testSmartMapping()
 {
     $query = new Doctrine_RawSql($this->connection);
     // smart component mapping (no need for additional addComponent call
     $query->parseDqlQuery('SELECT {entity.name}, {entity.id} FROM entity');
     $fields = $query->getFields();
     $this->assertEqual($fields, array('entity.name', 'entity.id'));
     $coll = $query->execute();
     $this->assertEqual($coll->count(), 11);
     $this->assertEqual($coll[0]->state(), Doctrine_Record::STATE_PROXY);
     $this->assertEqual($coll[3]->state(), Doctrine_Record::STATE_PROXY);
 }