BCSalesService { public BCCouponTemplateResult queryCouponTemplate(String id) { String url = BCHttpClientUtil.BEECLOUD_HOST + "/2/rest/coupon/template"; return (BCCouponTemplateResult) BCHttpClientUtil.queryRestObjectById(url, id, BCCouponTemplateResult.class, true, true); }  BCCouponResult createCoupon(String templateId, String userId); BCCouponResult queryCoupon(String id); BCCouponsResult queryCoupons(BCCouponCriteria couponCriteria); BCCouponTemplateResult queryCouponTemplate(String id); BCCouponTemplatesResult queryCouponTemplates(BCCouponTemplateCriteria templateCriteria);  }
@Test public void testQueryCouponTemplate() { BCCouponTemplateResult templateResult = couponService.queryCouponTemplate("b7bf7c8e-321b-4451-8b3a-6fd630836641"); Assert.assertTrue(templateResult.getResultCode() == 0); BCCouponTemplate template = templateResult.getCouponTemplate(); System.out.println(template.getAppId()); System.out.println(template.getName()); }