public void testParameterizedBeanPropertyExpression() {
ParameterizedPropertyConstraint p = new ParameterizedPropertyConstraint("test", EqualTo.instance(), "testValue");
assertTrue(p.test(new TestBean()));
p = new ParameterizedPropertyConstraint("test", EqualTo.instance(), "test2Value");
assertFalse(p.test(new TestBean()));
}
public void testNoRules() {
Rules r = new Rules(TestBean.class);
assertTrue(r.test(new TestBean()));