### Question:
GameDataManager extends AbstractMongoManager { public void reload() { dataMap.clear(); List<DBObject> list = MongoDBUtil.queryAllFromMongo(null, databaseName, namespace, GAMEDATA_COLL_NAME, null); for ( DBObject result : list ) { Object obj = NULL; if ( result != null ) { String keyName = (String)result.get(GAMEDATA_KEY_NAME); GameDataKey key = null; if ( keyName != null ) { key = GameDataKey.fromKey(keyName); } if ( key != null ) { obj = result.get(GAMEDATA_VALUE_NAME); dataMap.put(key, obj); } } } for ( GameDataKey key : GameDataKey.values() ) { reload(key); } logger.debug("Load total {} GameDataKeys from database", GameDataKey.values().length); } GameDataManager();   GameDataManager(String databaseName, String namespace, boolean isSafeWrite); void reload(); void reload(GameDataKey key); static GameDataManager getInstance(); double getGameDataAsDouble(GameDataKey key, double defaultValue); double[] getGameDataAsDoubleArray(GameDataKey key); double[][] getGameDataAsDoubleArrayArray(GameDataKey key); int[] getGameDataAsIntArray(GameDataKey key); int getGameDataAsInt(GameDataKey key, int defaultValue); int[][] getGameDataAsIntArrayArray(GameDataKey key); boolean getGameDataAsBoolean(GameDataKey key, boolean defaultValue); String getGameDataAsString(GameDataKey key); String getGameDataAsString(GameDataKey key, String defaultStr); String[] getGameDataAsStringArray(GameDataKey key); void overrideRuntimeValue(GameDataKey key, int value); void overrideRuntimeValue(GameDataKey key, double value); void overrideRuntimeValue(GameDataKey key, int[] values); void overrideRuntimeValue(GameDataKey key, double[] values); void setValueToDatabase(GameDataKey key, Object value); void setValueToDatabase(GameDataKey key, Object value, Object defaultValue); Map<GameDataKey, Object> getDataMap(); BseGameDataKey toBseGameDataKey(int userLevel); static void saveDefaultValue(); static void main(String ...args);  }### Answer:
@Test public void testReload() { manager.setValueToDatabase(GameDataKey.BATTLE_ATTACK_K, 0.15, 0.20); double k = manager.getGameDataAsDouble(GameDataKey.BATTLE_ATTACK_K, 10.0); assertEquals(0.15, k, 0.001); manager.setValueToDatabase(GameDataKey.BATTLE_ATTACK_K, 0.25, 0.30); k = manager.getGameDataAsDouble(GameDataKey.BATTLE_ATTACK_K, 10.0); assertEquals(0.25, k, 0.001); }