### Question:
Cocos2DIndexServiceImpl implements Cocos2dIndexService { @Override public NewRole queryRoleMsgQx(Integer id) throws Exception { NewRole role = null; Object ob = redisdaoservice.get(RoleMsgUtil.ROLEMSG + id); if (ob == null) { role = rolemapper.queryTotalShuXingToRole(id); if (role != null) { RoleFujiang rf = new RoleFujiang(); rf.setStatus("休息"); rf.setShuxing(1); rf.setRoleid(id); List<RoleFujiang> rfLi = rolefujiangmapper.selectAll(rf); if (rfLi != null && rfLi.size() > 0) { for (RoleFujiang f : rfLi) { List<RoleNewShuXing> kxLi = rolenewshuxingmapper.queryRoleShuXing(f.getId(), 1); f.setShuXingLi(kxLi); } } role.setFuLi(rfLi); } redisdaoservice.set(RoleMsgUtil.ROLEMSG + id, role, null); } else { role = (NewRole) ob; } return role; }  @Override NewRole queryRoleMsg(Integer id); @Override NewRole queryRoleById(Integer id); @Override NewRole queryRoleMsgQx(Integer id); @Override NewRole queryRoleMsg(Integer id, Integer friendId); @Override Object[] chatMsg(); @Override GjsgMap moveCity(String city, HttpSession session); @Override MapGuai queryMapGuai(String city); @Override YeGuaiQun queryYeGuaiQun(String name); @Override List<NewRole> nearbyRole(String city, String key);  }### Answer:
@Test public void queryRoleMsgQx() throws Exception { NewRole role=cocos2dindexservice.queryRoleMsgQx(1000); }