@Test
public void declareRuleFromAttributeWithCompoundPredicate() {

    Attribute attribute = getCompoundPredicateAttribute();
    final String parentPath = "parent_path";
    final int attributeIndex = 2;
    final List<KiePMMLDroolsRule> rules = new ArrayList<>();
    final String statusToSet = "status_to_set";
    final String characteristicReasonCode = "REASON_CODE";
    final double characteristicBaselineScore = 12;
    final boolean isLastCharacteristic = false;
    getKiePMMLScorecardModelCharacteristicASTFactory()
            .declareRuleFromAttribute(attribute, parentPath, attributeIndex, rules, statusToSet, characteristicReasonCode, characteristicBaselineScore, isLastCharacteristic);
    assertEquals(1, rules.size());
    commonValidateRule(rules.get(0),
                       attribute,
                       statusToSet,
                       parentPath,
                       attributeIndex,
                       isLastCharacteristic,
                       1,
                       null,
                       BOOLEAN_OPERATOR.AND,
                       "value >= 5.0 && value < 12.0",
                       2);
}