// maximum value constraint with inclusive set to false
maxValueConstraint.setInclusive(false);
numberType.setMaximumValueConstraint(maxValueConstraint);
// check constraint with right value
numberValue.setValue(new Integer(5));
errors = numberType.verify(numberValue);
assertEquals(0, errors.size());
// check constraint violation
numberValue.setValue(new Integer(6));
errors = numberType.verify(numberValue);
assertEquals(1, errors.size());