Agents { public List<Agent> list() { String url = WxEndpoint.get("url.agent.list"); String content = wxClient.get(url); logger.debug("list agents: {}", content); AgentsList agentsList = JsonMapper.nonEmptyMapper().fromJson(content, AgentsList.class); return agentsList.getAgents(); }  static Agents defaultAgents(); static Agents with(CorpSetting corpSetting); void setWxClient(WxClient wxClient); List<Agent> list(); Agent get(int id); void update(Agent agent);  }
@Test public void testList() { List<Agent> list = Agents.defaultAgents().list(); Assert.assertNotNull(list); }