### Question:
SharedPreferencesUserStorage implements UserStorage { @Override public long getTimestamp() { return mSharedPreferences.getLong(mResources.getString(R.string.prefs_key_created_utc), 0); } @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 getTimestamp_retrievesCorrectValue() { assertThat(mStorage.getTimestamp(), equalTo(100l)); }