### Question:
ActivityManager extends AbstractMongoManager { public void setActivityUrl(String url, int expireSeconds) { if ( StringUtil.checkNotEmpty(url) ) { Jedis jedisDB = JedisFactory.getJedisDB(); jedisDB.set(KEY_ACT_URL, url); if ( expireSeconds > 0 ) { jedisDB.expire(KEY_ACT_URL, expireSeconds); } } } private  ActivityManager(); void reload(); void sendPromotionMessages(User user); static final ActivityManager getInstance(); String getActivityUrl(); void displayActivityForUser(User user); void setActivityUrl(String url, int expireSeconds); synchronized float getActivityExpRate(User user); synchronized float getActivityStrengthRate(User user); synchronized void consumeDoubleExp(User user); synchronized void setActivityExpRate(String serverId, float expRate, int expireSeconds); synchronized void setActivityStrengthRate(String serverId, float strRate, int expireSeconds); synchronized void setActivityExpRate(User user, int battleCount, float expRate, int expireSeconds); static final String KEY_ACT_URL; static final String KEY_ACT_USER; static final String KEY_ACT_EXPRATE; static final String KEY_USER_EXPRATE; static final String KEY_ACT_STRRATE; static final String KEY_USER_STRRATE; static final String FIELD_BATTLECOUNT; static final String FIELD_STRCOUNT; static final String FIELD_EXPRATE; static final String FIELD_STRRATE; static final String FIELD_SERVERID; }### Answer:
@Test public void testSetActivityUrl() { String activityUrl = "http: ActivityManager manager = ActivityManager.getInstance(); manager.setActivityUrl(activityUrl, 0); String actual = manager.getActivityUrl(); assertEquals(activityUrl, actual); }