code: protected MessageChannel getDestinationChannel(TestContext context) {
          if (endpointConfiguration.getChannel() != null) {
              return endpointConfiguration.getChannel();
          } else if (StringUtils.hasText(endpointConfiguration.getChannelName())) {
              return resolveChannelName(endpointConfiguration.getChannelName(), context);
          } else {
              throw new CitrusRuntimeException("Neither channel name nor channel object is set - " +
                      "please specify destination channel");
          }
      }
docs: Get the destination channel depending on settings in this message sender.
  Either a direct channel object is set or a channel name which will be resolved
  to a channel.
  
  @param context the test context
  @return the destination channel object.