Constraint p = new IsEqual(s1);
assertTrue("Should equal itself", p.eval(s1));
assertTrue("Should equal a similar array", p.eval(s2));
assertTrue("Should not equal a different array", !p.eval(s3));
assertTrue("Should not equal a different sized array", !p.eval(s4));
}
public void testIsEqualToStringForNestedConstraint() {
assertEquals("Should get an obvious toString to reflect nesting if viewed in a debugger",
" = = NestedConstraint", new IsEqual(new IsEqual("NestedConstraint")).toString());