// Arrange
String sourceTopicName = "TestReceiveSubForwardToTopMessageSuccessSrc";
String sourceSubscriptionName = "TestReceiveSubForwardToTopMessageSuccessSrc";
String destinationTopicName = "TestReceiveSubForwardToTopMessageSuccessDest";
String destinationSubscriptionName = "TestReceiveSubForwardToTopMessageSuccessDest";
service.createTopic(new TopicInfo(sourceTopicName)).getValue();
TopicInfo destinationTopicInfo = service.createTopic(
new TopicInfo(destinationTopicName)).getValue();
service.createSubscription(destinationTopicName,
new SubscriptionInfo(destinationSubscriptionName)).getValue();
SubscriptionInfo sourceSubscriptionInfo = service.createSubscription(
sourceTopicName, new SubscriptionInfo(sourceSubscriptionName))
.getValue();
service.updateSubscription(sourceTopicName, sourceSubscriptionInfo
.setForwardTo(destinationTopicInfo.getUri().toString()));
Thread.sleep(1000);
// Act
service.sendTopicMessage(sourceTopicName, new BrokeredMessage(
"Hello source queue!"));