### Question:
CannedPropertyValidators { public static IntegerPropertyValidationRules uintValidator(int max) { return new IntegerPropertyValidationRules(0, max); }  static BooleanPropertyValidationRules boolValidator(); static PinPropertyValidationRules pinValidator(); static PinPropertyValidationRules optPinValidator(); static IntegerPropertyValidationRules uintValidator(int max); static StringPropertyValidationRules variableValidator(); static StringPropertyValidationRules textValidator(); static ChoicesPropertyValidationRules choicesValidator(Collection<String> values); static MenuItemValidationRules menuItemValidatorForAllItems(); static MenuItemValidationRules menuItemValidatorForSpecifcType(Class<? extends MenuItem> cls);  }### Answer:
@Test public void testUIntValidator() { IntegerPropertyValidationRules validator = CannedPropertyValidators.uintValidator(40); assertFalse(validator.hasChoices()); assertThat(validator.choices()).isEmpty(); assertTrue(validator.isValueValid("0")); assertTrue(validator.isValueValid("40")); assertFalse(validator.isValueValid("42")); assertFalse(validator.isValueValid("-1")); assertTrue(validator.isValueValid("0x20")); assertFalse(validator.isValueValid("0x50")); assertFalse(validator.isValueValid("0x")); }