### Question:
RewardManager extends AbstractMongoManager { public static final String getLoginRewardKeyName(String userName) { String key = StringUtil.concat(LOGIN_REWARD, userName); return key; } RewardManager(); void reload(); void addRewardPojo(RewardPojo newRewardPojo); static RewardManager getInstance(); ArrayList<Reward> generateRewardsFromScript(User user, int slotSize, ScriptHook hook); RewardLevelPojo getRewardLevelPojoByTypeId(String weaponOrItemId); Collection<RewardLevelPojo> getRewardLevelPojoByUserLevel(int userLevel); static TreeSet<RewardPojo> getRewardPojoForType(User user, RewardPojoType pojoType); static ArrayList generateRandomRewards(User user, int count, Set excludeRewards); static final Reward generateRandomStone(User user); static Reward getRewardItem(ItemPojo item); static Reward getRewardItem(String itemId, int count); static Reward getRewardMedal(int[] medal); static Reward getRewardVoucher(); static Reward getRewardYuanbao(); static Reward getRewardYuanbao(int count); static Reward getRewardExp(User user); static Reward getRewardExp(int count); static final Reward generateRandomWeapon(User user); static final Reward generateRandomWeapon(User user, 
			Set<EquipType> includeSet); static final Reward getWeaponReward(WeaponPojo weapon, 
			int level, int colorIndex, boolean typeRelated); static final Reward getWeaponReward(WeaponPojo weapon, 
			int level, int colorIndex, boolean typeRelated, int maxLevel); static Reward getRewardGolden(User user); static Reward getRewardGolden(int count); int processLoginReward(User user, long currentTimeMillis); boolean takeLoginReward(User user, long currentTimeMillis); DailyMarkReward processDailyMarkReward(User user, long currentTimeMillis); boolean takeDailyMarkReward(User user, long currentTimeMillis); OnlineReward processOnlineReward(User user, long currentTimeMillis); boolean takeOnlineReward(User user, long currentTimeMillis); void clearUserReward(String userName); boolean pickReward(User user, Collection<Reward> rewards, StatAction statAction); PickRewardResult pickRewardWithResult(User user, Collection<Reward> rewards, StatAction statAction); final void sendMailIfBagFull(User user, Collection<Reward> gifts); PropData convertRewardWeaponToPropData(Reward reward, User user); WeaponPojo convertRewardToWeapon(Reward reward, int userLevel); final PropData convertRewardItemToPropData(Reward reward); final Reward convertPropDataToReward(PropData propData); final String getRewardName(Reward reward); PickRewardResult openItemBox(User user, int pew); final void sendOnlineReward(User user, Reward[] rewards); static final String getLoginRewardKeyName(String userName); static final String getDailyMarkRewardKeyName(String userName); static final String getOnlineRewardKeyName(String userName); final void addRewardLevelPojo(RewardLevelPojo pojo); final void displayRewardCards(User user, ArrayList<Reward> fourRewards, String id); ArrayList<PropDataSlot> makeWeaponSlot(int slot); static final List FIELD_LIST; }### Answer:
@Test public void testGetLoginRewardKeyName() { RewardManager manager = RewardManager.getInstance(); String key = manager.getLoginRewardKeyName(userName); assertEquals("reward:login:"+userName, key); }