### Question:
WxCpUserServiceImpl implements WxCpUserService { @Override public WxCpInviteResult invite(List<String> userIds, List<String> partyIds, List<String> tagIds) throws WxErrorException { String url = "https: JsonObject jsonObject = new JsonObject(); if (userIds != null) { JsonArray jsonArray = new JsonArray(); for (String userId : userIds) { jsonArray.add(new JsonPrimitive(userId)); } jsonObject.add("user", jsonArray); } if (partyIds != null) { JsonArray jsonArray = new JsonArray(); for (String userId : partyIds) { jsonArray.add(new JsonPrimitive(userId)); } jsonObject.add("party", jsonArray); } if (tagIds != null) { JsonArray jsonArray = new JsonArray(); for (String tagId : tagIds) { jsonArray.add(new JsonPrimitive(tagId)); } jsonObject.add("tag", jsonArray); } return WxCpInviteResult.fromJson(this.mainService.post(url, jsonObject.toString())); } WxCpUserServiceImpl(WxCpService mainService); @Override void authenticate(String userId); @Override void create(WxCpUser user); @Override void update(WxCpUser user); @Override void delete(String... userIds); @Override WxCpUser getById(String userid); @Override List<WxCpUser> listByDepartment(Long departId, Boolean fetchChild, Integer status); @Override List<WxCpUser> listSimpleByDepartment(Long departId, Boolean fetchChild, Integer status); @Override WxCpInviteResult invite(List<String> userIds, List<String> partyIds, List<String> tagIds); @Override Map<String, String> userId2Openid(String userId, Integer agentId); @Override String openid2UserId(String openid); @Override WxCpUserExternalContactInfo getExternalContact(String userId);  }### Answer:
@Test public void testInvite() throws Exception { WxCpInviteResult result = this.wxCpService.getUserService().invite( Lists.newArrayList(userId), null,null); System.out.println(result); }