@Test
public void testSettings_OutlierDetection_OFF() {

    // If preferences key does not exist SharedPreferences will return a default value for this key, which is false
    // in our case, so we don't need to set it here.
    activity.onResume();
    verify(userLocator, times(1)).setOutlierMode(eq(UserLocator.OUTLIER_MODE_NO_DETECTION));
    verify(userLocator, never()).setOutlierMode(eq(UserLocator.OUTLIER_MODE_CME));
    verify(userLocator, never()).setOutlierMode(eq(UserLocator.OUTLIER_MODE_PLASMONA));
}