@VisibleForTesting
  protected AudioManager getAudioManager() {
    return mAudioManager;
  }
@Test
  public void testLoadAndUnloadSystemSounds() {
    ShadowAskAudioManager shadowAudioManager =
        (ShadowAskAudioManager) Shadows.shadowOf(mAnySoftKeyboardUnderTest.getAudioManager());
    Assert.assertEquals(
        getApplicationContext().getResources().getBoolean(R.bool.settings_default_sound_on),
        shadowAudioManager.areSoundEffectsLoaded());

    SharedPrefsHelper.setPrefsValue(R.string.settings_key_sound_on, true);
    Assert.assertTrue(shadowAudioManager.areSoundEffectsLoaded());
    SharedPrefsHelper.setPrefsValue(R.string.settings_key_sound_on, false);
    Assert.assertFalse(shadowAudioManager.areSoundEffectsLoaded());
    SharedPrefsHelper.setPrefsValue(R.string.settings_key_sound_on, true);
    Assert.assertTrue(shadowAudioManager.areSoundEffectsLoaded());

    mAnySoftKeyboardController.destroy();
    Assert.assertFalse(shadowAudioManager.areSoundEffectsLoaded());
  }