Materials { public Counts count(int agent) { String response = wxClient.get(String.format(WxEndpoint.get("url.material.count"), agent)); return JsonMapper.defaultMapper().fromJson(response, Counts.class); }  static Materials defaultMaterials(); static Materials with(CorpSetting corpSetting); void setWxClient(WxClient wxClient); String addMpNews(int agent, MpNews mpNews); void updateMpNews(int agent, String mediaId, MpNews mpNews); MpNews getMpNews(int agent, String mediaId); void deleteMpNews(int agentId, String mediaId); String upload(int agent, MediaType type, InputStream inputStream, String fileName); File download(int agent, String mediaId); void delete(int agent, String mediaId); String addMpNewsImage(InputStream inputStream, String fileName); Counts count(int agent); MaterialPagination list(int agentId, MediaType type, int offset, int size); MpNewsPagination listMpNews(int agentId, int offset, int size);  }
@Test public void testCount() { Counts counts = Materials.defaultMaterials().count(84); Assert.assertNotNull(counts); }