public Preference<Boolean> getBoolean(@StringRes int prefKey, @BoolRes int defaultValue) {
    return mRxSharedPreferences.getBoolean(
        mResources.getString(prefKey), mResources.getBoolean(defaultValue));
  }
@Test
  public void testConvertBottomGenericRow() {
    SharedPrefsHelper.setPrefsValue(
        "settings_key_ext_kbd_bottom_row_key", "3DFFC2AD-8BC8-47F3-962A-918156AD8DD0");
    SharedPrefsHelper.setPrefsValue(RxSharedPrefs.CONFIGURATION_VERSION, 10);

    SharedPreferences preferences =
        PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
    Assert.assertFalse(
        preferences.contains("ext_kbd_enabled_1_3DFFC2AD-8BC8-47F3-962A-918156AD8DD0"));

    new RxSharedPrefs(getApplicationContext(), this::testRestoreFunction);
    Assert.assertTrue(
        preferences.contains("ext_kbd_enabled_1_3DFFC2AD-8BC8-47F3-962A-918156AD8DD0"));
    Assert.assertTrue(
        preferences.getBoolean("ext_kbd_enabled_1_3DFFC2AD-8BC8-47F3-962A-918156AD8DD0", false));
  }