Menus { public MenuConfig getMenuConfig() { String url = WxEndpoint.get("url.menu.get.self"); String content = wxClient.get(url); logger.debug("get menu config: {}", content); return JsonMapper.nonEmptyMapper().fromJson(content, MenuConfig.class); }  static Menus defaultMenus(); static Menus with(AppSetting appSetting); void setWxClient(WxClient wxClient); void create(Menu menu); String createRuleMenu(RuleMenu menu); void delete(); void delete(String menuId); Menu get(); List<RuleMenu> getRuleMenus(); MenuConfig getMenuConfig(); Menu match(String userId); List<Menu> list();  }
@Test public void testGetMenuConfig() { MenuConfig menu = Menus.defaultMenus().getMenuConfig(); Assert.assertNotNull(menu); }