@Test
public void getKiePMMLCompoundPredicate() {

    CompoundPredicate compoundPredicate = new CompoundPredicate();
    compoundPredicate.setBooleanOperator(CompoundPredicate.BooleanOperator.XOR);
    compoundPredicate.getPredicates().addAll(simplePredicates);
    KiePMMLCompoundPredicate retrieved = KiePMMLPredicateFactory.getKiePMMLCompoundPredicate(compoundPredicate,
                                                                                             dataDictionary);
    assertNotNull(retrieved);
    assertEquals(BOOLEAN_OPERATOR.XOR, retrieved.getBooleanOperator());
    assertEquals(simplePredicates.size(), retrieved.getKiePMMLPredicates().size());
    retrieved.getKiePMMLPredicates().forEach(simplePredicate -> commonVerifySimplePredicate((KiePMMLSimplePredicate) simplePredicate, retrieved.getId()));
}