public void testRangeConstraint() {
Constraint p = new Range(new Integer(0), new Integer(10));
assertTrue(p.test(new Integer(0)));
assertTrue(p.test(new Integer(10)));
assertFalse(p.test(new Integer(-1)));
assertFalse(p.test(new Integer(11)));
}
public void testAnd() {
And and = new And();
and.add(Required.instance());