@Test
public void testRangeGreatherThanMax() {

  final UserPreference up = new UserPreference("id", "1", NAME, MAX + 0.1);
  this.validator = new PreferenceValidator(up);
  assertThrows(PreferenceValidationException.class, () -> this.validator.validate(this.range));
}