ruleControl1.expectAndReturn(rule1.getErrorCode(), "errorCode1");
ruleControl1.expectAndReturn(rule1.getDefaultErrorMessage(), "message1");
ruleControl1.expectAndReturn(rule1.getErrorArguments(object), args);
ruleControl2.expectAndReturn(rule2.isApplicable(object), true);
ruleControl2.expectAndReturn(rule2.getCondition(), new AlwaysTrueCondition());
ValidationRule[] globalRules = new ValidationRule[] { rule1, rule2 };
configurationControl.expectAndReturn(configuration.getGlobalRules(), globalRules);
converterControl.expectAndReturn(converter.convertGlobalErrorCode("errorCode1", Object.class), "_errorCode1");