"123456",
"Property [{0}] of class [{1}] with value [{2}] does not fall within the valid size range from [{3}] to [{4}]");
}
public void testCreation() {
SizeConstraint constraint = (SizeConstraint) getConstraint("testInteger", new IntRange(1,5));
assertEquals(ConstrainedProperty.SIZE_CONSTRAINT, constraint.getName());
assertTrue(constraint.supports(List.class));
assertTrue(constraint.supports(Collection.class));
assertTrue(constraint.supports(Double[].class));
assertFalse(constraint.supports(Object.class));
assertFalse(constraint.supports(null));
assertFalse(constraint.supports(Integer.class));
assertFalse(constraint.supports(Number.class));
assertEquals(new IntRange(1,5), constraint.getRange());
try {
getConstraint("testInteger", "wrong");
fail("SizeConstraint must throw an exception for non-range parameters.");
} catch(IllegalArgumentException iae) {