@Override
  protected boolean isStepCompleted(@NonNull Context context) {
    // note: we can not use mSharedPrefs, since this method might be
    // called before onAttached is called.
    return (mSharedPrefs == null ? DirectBootAwareSharedPreferences.create(context) : mSharedPrefs)
        .getBoolean(STARTED_PREF_KEY, false);
  }
@Test
  public void testClickPrivacyPolicy() {
    WizardPageWelcomeFragment fragment = startFragment();
    Assert.assertFalse(fragment.isStepCompleted(getApplicationContext()));

    fragment.getView().findViewById(R.id.setup_wizard_welcome_privacy_action).performClick();

    Intent wikiIntent =
        Shadows.shadowOf((Application) ApplicationProvider.getApplicationContext())
            .getNextStartedActivity();
    Assert.assertEquals(Intent.ACTION_VIEW, wikiIntent.getAction());
    Assert.assertEquals(
        "http://anysoftkeyboard.github.io/privacy-policy/", wikiIntent.getData().toString());
  }