public static List<ProviderDetails> getAllPrefsProviders(@NonNull Context context) {
    return Arrays.asList(
        new ProviderDetails(
            new RxSharedPrefs.SharedPrefsProvider(DirectBootAwareSharedPreferences.create(context)),
            R.string.shared_prefs_provider_name),
        new ProviderDetails(
            new UserDictionaryPrefsProvider(context), R.string.user_dict_prefs_provider),
        new ProviderDetails(
            new NextWordPrefsProvider(
                context, ExternalDictionaryFactory.getLocalesFromDictionaryAddOns(context)),
            R.string.next_word_dict_prefs_provider),
        new ProviderDetails(
            new WordsSQLiteConnectionPrefsProvider(
                context, AbbreviationsDictionary.ABBREVIATIONS_DB),
            R.string.abbreviation_dict_prefs_provider));
  }
@Test
  public void testGetAllPrefsProviders() {
    final List<GlobalPrefsBackup.ProviderDetails> allPrefsProviders =
        GlobalPrefsBackup.getAllPrefsProviders(getApplicationContext());
    Assert.assertNotNull(allPrefsProviders);
    Assert.assertEquals(4, allPrefsProviders.size());
  }