@Test
public void testSettings_OutlierDetection_ON_Default_CME2() {

    String prefOutlierKey = resources.getString(R.string.key_pref_outlierEnabled);
    sharedPreferences.edit().putBoolean(prefOutlierKey, true).commit();
    // The default algorithm is CME, so we don't need to set it in the ShadowPreferenceManager
    activity.onResume();
    verify(userLocator, times(1)).setOutlierMode(eq(UserLocator.OUTLIER_MODE_CME));
    verify(userLocator, never()).setOutlierMode(eq(UserLocator.OUTLIER_MODE_PLASMONA));
    verify(userLocator, never()).setOutlierMode(eq(UserLocator.OUTLIER_MODE_NO_DETECTION));
}