public void testLike() {
String keithDonald = "keith donald";
String keith = "keith";
String donald = "donald";
Constraint p = constraints.like(keithDonald);
assertTrue(p.test("keith donald"));
assertFalse(p.test("Keith Donald"));
p = constraints.like("%keith donald%");
assertTrue(p.test("keith donald"));
assertFalse(p.test("Keith Donald"));
p = constraints.like("keith%");
assertTrue(p.test(keithDonald));
assertTrue(p.test(keith));
assertFalse(p.test(donald));
p = constraints.like("%donald");
assertTrue(p.test(keithDonald));
assertTrue(p.test(donald));
assertFalse(p.test(keith));
}