assertTrue("default sickly retry policy not set correctly",nsrp.getNumNoDelayRetries() == 0);
assertTrue("default sickly retry policy not set correctly",nsrp.getBackOffFunction() == CnsBackoffFunction.geometric);
assertTrue("defaultThrottlePolicy not set correctly", ndtp.getMaxReceivesPerSecond() == 19);
try {
JSONObject json = topicPolicy.toJSON();
logger.debug("Json is:" + json.toString());
assertTrue("toJSON fails to return proper JSON", json.has("http"));
JSONObject httpJson = json.getJSONObject("http");
assertTrue("toJSON fails to return proper JSON", httpJson.has("defaultHealthyRetryPolicy"));
assertTrue("toJSON fails to return proper JSON", httpJson.has("defaultSicklyRetryPolicy"));