SharedPreferences testcase