### Question:
WxCpOAuth2ServiceImpl implements WxCpOAuth2Service { @Override public WxCpUserDetail getUserDetail(String userTicket) throws WxErrorException { String url = "https: JsonObject param = new JsonObject(); param.addProperty("user_ticket", userTicket); String responseText = this.mainService.post(url, param.toString()); return new GsonBuilder().create().fromJson(responseText, WxCpUserDetail.class); } WxCpOAuth2ServiceImpl(WxCpService mainService); @Override String buildAuthorizationUrl(String state); @Override String buildAuthorizationUrl(String redirectUri, String state); @Override String[] getUserInfo(String code); @Override String[] getUserInfo(Integer agentId, String code); @Override WxCpUserDetail getUserDetail(String userTicket);  }### Answer:
@Test public void testGetUserDetail() throws WxErrorException { WxCpUserDetail userDetail = this.wxService.getOauth2Service().getUserDetail("b"); System.out.println(userDetail); }