### Question:
BceLoginReadyHandler extends SimpleChannelHandler { public static BceLoginReadyHandler getInstance() { return instance; } private  BceLoginReadyHandler(); static BceLoginReadyHandler getInstance(); @Override void messageProcess(IoSession session, Object message, SessionKey sessionKey);  }### Answer:
@Test public void testUserLoginWithExpireEquipments() throws Exception { String userName = randomUserName(); registerUser2(userName); User user = UserManager.getInstance().queryUser(userName); UserManager.getInstance().queryUserBag(user); WeaponPojo weapon = EquipManager.getInstance().getWeaponById(UserManager.basicWeaponItemId); PropData propData = weapon.toPropData(5, WeaponColor.WHITE); EquipCalculator.weaponUpLevel(propData, 5); Bag bag = user.getBag(); bag.addOtherPropDatas(propData); bag.wearPropData(21, PropDataEquipIndex.WEAPON.index()); UserManager.getInstance().saveUser(user, false); UserManager.getInstance().saveUserBag(user, false); List<XinqiMessage> list = null; list = loginUser(userName); for ( int i=0; i<5; i++ ) { user = UserManager.getInstance().queryUser(userName); UserManager.getInstance().queryUserBag(user); makeReadyBattle(user); PropData myPropData = user.getBag().getWearPropDatas().get(17); assertEquals(i+1, myPropData.getPropUsedTime()); } list = loginUser(userName); BseExpireEquipments equips = getExpireEquips(list); System.out.println(equips); assertNotNull(equips); }