/**
  * @param $message
  * @return MailWrappedMessage
  * @throws MailWrapperSetupException
  */
 public static function getWrappedMessage($message)
 {
     switch (true) {
         case $message instanceof MailWrappedMessage:
             return $message;
         case $message instanceof Message:
             return MessageTransformerZend::toWrappedMessage($message);
         case $message instanceof MessageBuilder:
             return MessageTransformerMailgun::toWrappedMessage($message);
         case $message instanceof \PHPMailer:
             return MessageTransformerPhpMailer::toWrappedMessage($message);
         case $message instanceof \Swift_Message:
             return MessageTransformerSwift::toWrappedMessage($message);
         default:
             throw new MailWrapperSetupException('No Message Converter');
     }
 }
 /**
  * @expectedException \BespokeSupport\MailWrapper\MailWrapperSetupException
  */
 public function testNullTransport()
 {
     $wrappedMessage = new MailWrappedMessage();
     MessageTransformerMailgun::fromWrappedMessage($wrappedMessage, null);
 }