public Preference<Boolean> getBoolean(@StringRes int prefKey, @BoolRes int defaultValue) {
    return mRxSharedPreferences.getBoolean(
        mResources.getString(prefKey), mResources.getBoolean(defaultValue));
  }
@Test
  public void testConvertTopGenericRow() {
    SharedPrefsHelper.setPrefsValue(
        "settings_key_ext_kbd_top_row_key", "1fae0220-ded6-11e0-9572-0800200c9a66");
    SharedPrefsHelper.setPrefsValue(RxSharedPrefs.CONFIGURATION_VERSION, 10);

    SharedPreferences preferences =
        PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
    Assert.assertFalse(
        preferences.contains("ext_kbd_enabled_2_1fae0220-ded6-11e0-9572-0800200c9a66"));

    new RxSharedPrefs(getApplicationContext(), this::testRestoreFunction);
    Assert.assertTrue(
        preferences.contains("ext_kbd_enabled_2_1fae0220-ded6-11e0-9572-0800200c9a66"));
    Assert.assertTrue(
        preferences.getBoolean("ext_kbd_enabled_2_1fae0220-ded6-11e0-9572-0800200c9a66", false));
  }