### Question:
GameDataManager extends AbstractMongoManager { public String[] getGameDataAsStringArray(GameDataKey key) { Object obj = getValueFromDatabase(key); if ( obj == NULL ) { return new String[0]; } else if ( obj instanceof String[] ) { return (String[])obj; } else { BasicDBList list = (BasicDBList)obj; String[] array = new String[list.size()]; for ( int i=0; i<array.length; i++ ) { array[i] = list.get(i).toString(); } return array; } } 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 testGetGameDataAsStringArray() { String[] array = new String[]{"07:30", "11:30", "14:30", "16:30", "18:30", "20:30", "22:30", "00:30"}; manager.setValueToDatabase(GameDataKey.USER_ONLINE_REWARD_STEP, array, array); String[] actual = manager.getGameDataAsStringArray(GameDataKey.USER_ONLINE_REWARD_STEP); assertArrayEquals(array, actual); }