### Question:
WxCpOAuth2ServiceImpl implements WxCpOAuth2Service { @Override public String[] getUserInfo(String code) throws WxErrorException { return this.getUserInfo(this.mainService.getWxCpConfigStorage().getAgentId(), code); } 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 testGetUserInfo() throws WxErrorException { this.wxService.getOauth2Service().getUserInfo("abc"); }