@Override
  protected boolean isStepCompleted(@NonNull Context context) {
    return isContactsPermComplete(context) && isNotificationPermComplete(context);
  }
@Test
  public void testKeyboardEnabledAndDefaultAndHasPermission() {
    final String flatASKComponent =
        new ComponentName(BuildConfig.APPLICATION_ID, SoftKeyboard.class.getName())
            .flattenToString();
    Settings.Secure.putString(
        getApplicationContext().getContentResolver(),
        Settings.Secure.ENABLED_INPUT_METHODS,
        flatASKComponent);
    Settings.Secure.putString(
        getApplicationContext().getContentResolver(),
        Settings.Secure.DEFAULT_INPUT_METHOD,
        flatASKComponent);
    Shadows.shadowOf((Application) ApplicationProvider.getApplicationContext())
        .grantPermissions(Manifest.permission.READ_CONTACTS);

    WizardPermissionsFragment fragment = startFragment();
    Assert.assertTrue(fragment.isStepCompleted(getApplicationContext()));
    var contacts = fragment.getView().findViewById(R.id.contacts_permission_group);
    Assert.assertEquals(View.GONE, contacts.getVisibility());
  }