Accounts { public List<Account> list() { String url = WxEndpoint.get("url.care.account.list"); String response = wxClient.get(url); logger.debug("list care accounts :{}", response); CareListResponse careListResponse = JsonMapper.defaultMapper().fromJson(response, CareListResponse.class); return careListResponse.getList(); }  static Accounts defaultAccounts(); static Accounts with(AppSetting appSetting); void setWxClient(WxClient wxClient); void add(String account, String nickName, String password); void update(String account, String nickName, String password); void delete(String account); void uploadHeadImage(String account, InputStream inputStream, String fileName); List<Account> list(); List<AccountStatus> listStatus();  }
@Test public void testList(){ List<Account> accounts = Accounts.defaultAccounts().list(); Assert.assertNotNull(accounts); }