Materials { public Counts count() { String response = wxClient.get(WxEndpoint.get("url.material.count")); return JsonMapper.defaultMapper().fromJson(response, Counts.class); }  static Materials defaultMaterials(); static Materials with(AppSetting appSetting); void setWxClient(WxClient wxClient); String addMpNewsImage(InputStream inputStream, String fileName); String addMpNews(MpNews mpNews); MpNews getMpNews(String mediaId); void updateMpNews(String mediaId, int index, MpArticle article); Material addVoice(InputStream inputStream, String fileName); InputStream getVoice(String mediaId); Material addImage(InputStream inputStream, String fileName); InputStream getImage(String mediaId); Material addThumb(InputStream inputStream, String fileName); InputStream getThumb(String mediaId); Material addVideo(InputStream inputStream, String fileName, String title, String description); Video getVideo(String mediaId); Counts count(); MaterialPagination list(MediaType mediaType, int offset, int count); MpNewsPagination listMpNews(int offset, int count); void delete(String mediaId);  }
@Test public void testCount() { Counts counts = Materials.defaultMaterials().count(); Assert.assertNotNull(counts); }