public function testThrowExceptionIfAliasDoesNotExist()
 {  
   $query = new Doctrine_RawSql();
   $query->parseQueryPart("select", "{test.test}");
   try{
       $query->getQuery();
       $this->fail("Should throw exception");
   }catch(Doctrine_RawSql_Exception $exception){
       $this->assertEqual($exception->getMessage(), "The associated component for table alias test couldn't be found.");
   }
 }