public GenericMessagingTemplateTest()
 {
     MessageChannel = new StubMessageChannel();
     Template       = new GenericMessagingTemplate();
     Template.DefaultDestination  = MessageChannel;
     Template.DestinationResolver = new TestDestinationResolver(this);
 }
 public GenericMessagingTemplateTest()
 {
     MessageChannel = new StubMessageChannel();
     Template       = new MessageChannelTemplate
     {
         DefaultSendDestination = MessageChannel,
         DestinationResolver    = new TestDestinationResolver(this)
     };
 }