public function testMessageFlagsAreSet()
 {
     $origFlags = array('foo' => 'bar', 'baz' => 'bat');
     $message = new Zend_Mail_Message(array('flags' => $origFlags));
     $messageFlags = $message->getFlags();
     $this->assertTrue($message->hasFlag('bar'), var_export($messageFlags, 1));
     $this->assertTrue($message->hasFlag('bat'), var_export($messageFlags, 1));
     $this->assertEquals(array('bar' => 'bar', 'bat' => 'bat'), $messageFlags);
 }