@Override
  protected boolean isStepCompleted(@NonNull Context context) {
    return SetupSupport.isThisKeyboardEnabled(context);
  }
@Test
  public void testClickToEnableReachesSettings() {
    WizardPageEnableKeyboardFragment fragment = startFragment();
    Assert.assertFalse(fragment.isStepCompleted(getApplicationContext()));

    final View linkToClick = fragment.getView().findViewById(R.id.go_to_language_settings_action);
    View.OnClickListener linkClickHandler = Shadows.shadowOf(linkToClick).getOnClickListener();

    Assert.assertNotNull(linkClickHandler);

    linkClickHandler.onClick(linkToClick);

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

    Assert.assertEquals(Settings.ACTION_INPUT_METHOD_SETTINGS, nextStartedActivity.getAction());
  }