### Question:
WxMaTemplateServiceImpl implements WxMaTemplateService { @Override public WxMaTemplateLibraryListResult findTemplateLibraryList(int offset, int count) throws WxErrorException { Map<String, Integer> params = new HashMap<>(); params.put("offset", offset); params.put("count", count); String responseText = this.wxMaService.post(TEMPLATE_LIBRARY_LIST_URL, WxGsonBuilder.create().toJson(params)); WxError wxError = WxError.fromJson(responseText); if(wxError.getErrorCode() == 0){ return WxMaTemplateLibraryListResult.fromJson(responseText); }else { throw new WxErrorException(wxError); } } WxMaTemplateServiceImpl(WxMaService wxMaService); @Override WxMaTemplateLibraryListResult findTemplateLibraryList(int offset, int count); @Override WxMaTemplateLibraryGetResult findTemplateLibraryKeywordList(String id); @Override WxMaTemplateAddResult addTemplate(String id, List<Integer> keywordIdList); @Override WxMaTemplateListResult findTemplateList(int offset, int count); @Override boolean delTemplate(String templateId);  }### Answer:
@Test public void testFindTemplateLibraryList() throws Exception { WxMaTemplateLibraryListResult result = this.wxService.getTemplateService().findTemplateLibraryList(0, 20); Assert.assertEquals(20, result.getList().size()); }