Stubbing android.content.SharedPreferences.