BlackLists { public void black(List<String> openids) { String url = WxEndpoint.get("url.blacklist.black"); Map<String, Object> body = new HashMap<>(); body.put("opened_list", openids); logger.debug("black users: {}", openids); wxClient.post(url, JsonMapper.defaultMapper().toJson(body)); }  static BlackLists defaultBlackLists(); static BlackLists with(AppSetting appSetting); void setWxClient(WxClient wxClient); void black(List<String> openids); void unblack(List<String> openids); UserPagination list(); UserPagination list(String nextOpenId);  }
@Test public void testBlack() { List<String> users = new ArrayList<>(); users.add("user1"); users.add("user2"); BlackLists.defaultBlackLists().black(users); }