### Question:
SharedPreferencesUserStorage implements UserStorage { @Override public int getNumberToRequest() { final String key = mResources.getString(R.string.prefs_key_number_to_retrieve); return Integer.parseInt(mSharedPreferences.getString(key, "5")); } @Inject  SharedPreferencesUserStorage(SharedPreferences sharedPreferences, Resources resources); @Override int getNumberToRequest(); void setSeenTimestamp(long createdAtUtc); @Override void clearTimestamp(); @Override String getSortType(); @Override String getSubreddits(); @Override Set<String> getSubredditCollection(); @Override String getRefreshInterval(); @Override long getTimestamp(); @Override boolean messagesEnabled(); @Override boolean downloadFullSizedImages(); @Override boolean openOnPhoneDismissesAfterAction();  }### Answer:
@Test public void numberToRetrieve_returnsCorrectValue() { assertThat(mStorage.getNumberToRequest(), equalTo(1)); }