### Question:
BackupAgentTimeoutParameters extends KeyValueSettingObserver { public long getQuotaExceededTimeoutMillis() { synchronized (mLock) { if (DEBUG_SCHEDULING) { Slog.v( TAG, "getQuotaExceededTimeoutMillis(): " + mQuotaExceededTimeoutMillis); } return mQuotaExceededTimeoutMillis; } } BackupAgentTimeoutParameters(Handler handler, ContentResolver resolver); String getSettingValue(ContentResolver resolver); void update(KeyValueListParser parser); long getKvBackupAgentTimeoutMillis(); long getFullBackupAgentTimeoutMillis(); long getSharedBackupAgentTimeoutMillis(); long getRestoreAgentTimeoutMillis(); long getRestoreAgentFinishedTimeoutMillis(); long getQuotaExceededTimeoutMillis(); @VisibleForTesting
    static final String SETTING; @VisibleForTesting
    static final String SETTING_KV_BACKUP_AGENT_TIMEOUT_MILLIS; @VisibleForTesting
    static final String SETTING_FULL_BACKUP_AGENT_TIMEOUT_MILLIS; @VisibleForTesting
    static final String SETTING_SHARED_BACKUP_AGENT_TIMEOUT_MILLIS; @VisibleForTesting
    static final String SETTING_RESTORE_AGENT_TIMEOUT_MILLIS; @VisibleForTesting
    static final String SETTING_RESTORE_AGENT_FINISHED_TIMEOUT_MILLIS; @VisibleForTesting
    static final String SETTING_QUOTA_EXCEEDED_TIMEOUT_MILLIS; @VisibleForTesting static final long DEFAULT_KV_BACKUP_AGENT_TIMEOUT_MILLIS; @VisibleForTesting
    static final long DEFAULT_FULL_BACKUP_AGENT_TIMEOUT_MILLIS; @VisibleForTesting
    static final long DEFAULT_SHARED_BACKUP_AGENT_TIMEOUT_MILLIS; @VisibleForTesting static final long DEFAULT_RESTORE_AGENT_TIMEOUT_MILLIS; @VisibleForTesting
    static final long DEFAULT_RESTORE_AGENT_FINISHED_TIMEOUT_MILLIS; @VisibleForTesting
    static final long DEFAULT_QUOTA_EXCEEDED_TIMEOUT_MILLIS; }### Answer:
@Test public void testGetQuotaExceededTimeoutMillis_returnsDefaultValue() { mParameters.start(); long timeout = mParameters.getQuotaExceededTimeoutMillis(); assertThat(timeout) .isEqualTo(BackupAgentTimeoutParameters.DEFAULT_QUOTA_EXCEEDED_TIMEOUT_MILLIS); }
@Test public void testGetQuotaExceededTimeoutMillis_whenSettingSet_returnsSetValue() { putStringAndNotify( BackupAgentTimeoutParameters.SETTING_QUOTA_EXCEEDED_TIMEOUT_MILLIS + "=" + 1279); mParameters.start(); long timeout = mParameters.getQuotaExceededTimeoutMillis(); assertThat(timeout).isEqualTo(1279); }