@Test
public void testSettings_ShowParticles_ON() {

    String prefShowParticlesKey = resources.getString(R.string.key_pref_showparticles);
    sharedPreferences.edit().putBoolean(prefShowParticlesKey, true).commit();
    activity.onResume();
    verify(userLocator.getParticleFilter(), times(1)).setShowParticles(eq(true));
    verify(userLocator.getParticleFilter(), never()).setShowParticles(eq(false));
}