HardSoftBigDecimalScoreHolder scoreHolder = new HardSoftBigDecimalScoreHolder(constraintMatchEnabled);
scoreHolder.addHardConstraintMatch(createRuleContext("scoreRule1"),
new BigDecimal("-10.00")); // Rule match added
RuleContext ruleContext2 = createRuleContext("scoreRule2");
scoreHolder.addHardConstraintMatch(ruleContext2, new BigDecimal("-2.00")); // Rule match added
callUnMatch(ruleContext2); // Rule match removed
RuleContext ruleContext3 = createRuleContext("scoreRule3");
scoreHolder.addSoftConstraintMatch(ruleContext3, new BigDecimal("-0.30")); // Rule match added
scoreHolder.addSoftConstraintMatch(ruleContext3, new BigDecimal("-0.03")); // Rule match modified
assertEquals(HardSoftBigDecimalScore.valueOf(new BigDecimal("-10.00"), new BigDecimal("-0.03")),
scoreHolder.extractScore());