TestUtils.failOnException("Unable to store preference value.", ex, result);
} catch (ValidatorException ex) {
TestUtils.failOnException("Unable to store preference value.", ex, result);
} finally {
try {
preferences.reset(PreferencesValidatorImpl.CHECK_VALIDATOR_COUNT);
preferences.store();
} catch (Exception ex) {
TestUtils.failOnException("Unable to reset preference value for "
+ PreferencesValidatorImpl.CHECK_VALIDATOR_COUNT,
ex, result);