@Test
public void testSettings_WayOverlay_ON_OFF() {

    String prefShowWayOverlay = resources.getString(R.string.key_pref_mapMatching_showWayOverlay);
    sharedPreferences.edit().putBoolean(prefShowWayOverlay, true).commit();
    activity.onResume();
    assertTrue(activity.getMapView().getOverlays().contains(activity.wayOverlay));
    sharedPreferences.edit().putBoolean(prefShowWayOverlay, false).commit();
    activity.onResume();
    assertFalse(activity.getMapView().getOverlays().contains(activity.wayOverlay));
}