@Override
  public void onClick(View v) {
    switch (v.getId()) {
      case R.id.go_to_start_setup:
        mSharedPrefs.edit().putBoolean(STARTED_PREF_KEY, true).apply();
        refreshWizardPager();
        break;
      case R.id.setup_wizard_welcome_privacy_action:
        String privacyUrl = getString(R.string.privacy_policy);
        startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(privacyUrl)));
        break;
      case R.id.skip_setup_wizard:
        startActivity(new Intent(getContext(), MainSettingsActivity.class));
        // not returning to this Activity any longer.
        requireActivity().finish();
        break;
      default:
        throw new IllegalArgumentException(
            "Failed to handle " + v.getId() + " in WizardPageDoneAndMoreSettingsFragment");
    }
  }
@Test
  public void testClickedSkipped() {
    var fragment = startFragment();

    final View link = fragment.getView().findViewById(R.id.skip_setup_wizard);
    var linkClickHandler = Shadows.shadowOf(link).getOnClickListener();

    Assert.assertNotNull(linkClickHandler);

    linkClickHandler.onClick(link);

    final Intent nextStartedActivity =
        Shadows.shadowOf((Application) ApplicationProvider.getApplicationContext())
            .getNextStartedActivity();

    Assert.assertEquals(
        MainSettingsActivity.class.getName(), nextStartedActivity.getComponent().getClassName());
  }