@Test
public void testFlagValid() {

  final UserPreference up = new UserPreference("id", "1", NAME, true);
  this.validator = new PreferenceValidator(up);
  try {
    this.validator.validate(this.flag);
  } catch (final PreferenceValidationException e) {
    fail(ERROR);
  }
}