subscriptionHandler.subscribe(CMBTestingConstants.HTTP_ENDPOINT_BASE_URL + "recv/" + i, CnsSubscriptionProtocol.http, t.getArn(), userId1);
}
CNSTestingUtils.confirmPendingSubscriptionsByTopic(t.getArn(), userId1, CnsSubscriptionProtocol.http);
ts1 = System.currentTimeMillis();
List<CNSSubscription> l = subscriptionHandler.listSubscriptionsByTopic(null, t.getArn(), null, 1000);
int totalSize = 0;
while (totalSize != 200 && l.size() > 0) {
totalSize += l.size();
logger.info("Number of subscriptions is " + totalSize);