* Executes the outbound Sns Operation.
*
*/
public Object executeOutboundOperation(final Message<?> message) {
MessagePacket packet = new MessagePacket(message);
if (snsTestProxy == null) {
PublishRequest request = new PublishRequest();
PublishResult result = client.publish(request
.withTopicArn(topicArn).withMessage(packet.toJSON()));
log.debug("Published message to topic: " + result.getMessageId());
} else {
snsTestProxy.dispatchMessage(packet.toJSON());
}
return message.getPayload();
}