### Question:
MailMessageManager { public final boolean pushSimpleMessage(final String roleName, final String deviceToken, final String text, int expireSeconds) { boolean success = true; if ( StringUtil.checkNotEmpty(deviceToken) && iosApnService != null ) { GameContext.getInstance().runSmallTask(new Runnable() { public void run() { PayloadBuilder builder = PayloadBuilder.newPayload(); builder.badge(1); builder.alertBody(text); ApnsNotification notif = iosApnService.push(deviceToken, builder.build()); } }); logger.debug("Push message '{}' to ios device", text); } else { String offlineBox = getOfflineboxName(roleName); pushValueInList(offlineBox, text, 10, expireSeconds); logger.debug("Push message '{}' to android device", text); } return success; } MailMessageManager(); static final MailMessageManager getInstance(); boolean sendAdminMail(UserId toUserId, 
			String subject, String content, Reward gift); boolean sendMail(UserId fromUserId, UserId toUserId, 
			String subject, String content, Collection<Reward> gifts, boolean isAdmin); void readMail(User user, int mailIndex, MailBoxType type); boolean takeMailGift(User user, int mailIndex); void checkMail(User user); void checkSendBox(User user, Jedis jedisDB); int deleteMail(User user, int[] mailIndex, MailBoxType type); void deleteAllMail(User user, MailBoxType type); void pushValueInList(String list, String content, int maxListCount, int expireSeconds); int deleteValueInList(String list, int[] indexes); void deleteAllInList(String list); String popValueFromList(String list, int expireSeconds); int acquireMailCount(String list); final boolean pushSimpleMessage(final String roleName, 
			final String deviceToken, final String text, int expireSeconds); final Collection<String> listSimplePushMessages(final String roleName); final Map<String, Date> getIosInactiveDevices(); final MailData parseMailString(String mailMessage); static final String getMailboxName(String userName); static final String getOfflineboxName(String roleName); static final String getMailboxName(String userName, MailBoxType type);  }### Answer:
@Test public void testPushSimpleMessage() { MailMessageManager mail = MailMessageManager.getInstance(); String deviceToken = "082bc80b8d67af604c163230145a645402489ec4c7e1ed6b3d00925200fee76e"; mail.pushSimpleMessage("wangqi", deviceToken, "测试一下系统", -1); Map<String, Date> devices = mail.getIosInactiveDevices(); for (String token : devices.keySet()) { Date inactiveAsOf = devices.get(token); System.out.println(token+":"+inactiveAsOf); } }