PreferencesHelper { public String getLastQueryLine() { return mPref.getString(PREF_KEY_LAST_QUERY, "3A"); } @Inject  PreferencesHelper(Context context); void clear(); void saveStartFromFirst(boolean isStartFromFirst); boolean getIsStartFromFirst(); Observable<List<String>> getAutoCompleteAsObservable(); void saveAutoCompleteItem(String item); void saveLastQueryLine(String lastQueryStation); String getLastQueryLine(); boolean getShowNotification(); boolean getTrackBackground(); boolean getShowPopupNotification(); int getAutoRefreshInterval(); static final String PREF_FILE_APP; }
@Test public void getLastQueryLine_whenEmpty() throws Exception { assertThat(mPreferencesHelper.getLastQueryLine()).isEqualTo("3A"); }