@Test
public void testSettings_StatisticFilter_ON_Default_Median() {

    String prefFilterKey = resources.getString(R.string.key_pref_filteringEnabled);
    sharedPreferences.edit().putBoolean(prefFilterKey, true).commit();
    // The default filter is median, so we don't need to set it in the ShadowPreferenceManager
    activity.onResume();
    verify(userLocator, times(1)).setStatisticFilterMode(eq(UserLocator.STATISTIC_FILTER_MODE_MEDIAN));
    verify(userLocator, never()).setStatisticFilterMode(eq(UserLocator.STATISTIC_FILTER_MODE_AVERAGE));
    verify(userLocator, never()).setStatisticFilterMode(eq(UserLocator.STATISTIC_FILTER_MODE_NO_FILTER));
}