ruleControl1.expectAndReturn(rule1.isApplicable(object), true);
ruleControl1.expectAndReturn(rule1.getCondition(), new AlwaysTrueCondition());
Object[] args = new Object[0];
ruleControl2.expectAndReturn(rule2.isApplicable(object), true);
ruleControl2.expectAndReturn(rule2.getCondition(), new AlwaysFalseCondition());
ruleControl2.expectAndReturn(rule2.getErrorCode(), "errorCode2");
ruleControl2.expectAndReturn(rule2.getDefaultErrorMessage(), "message2");
ruleControl2.expectAndReturn(rule2.getErrorArguments(object), args);
ValidationRule[] rules = new ValidationRule[] { rule1, rule2 };