@Test
public void getPredicates() {

    List<Predicate> predicates = new ArrayList<>(simplePredicates);
    CompoundPredicate compoundPredicate = new CompoundPredicate();
    compoundPredicate.setBooleanOperator(CompoundPredicate.BooleanOperator.XOR);
    compoundPredicate.getPredicates().addAll(simplePredicates);
    predicates.add(compoundPredicate);
    True truePredicate = new True();
    predicates.add(truePredicate);
    False falsePredicate = new False();
    predicates.add(falsePredicate);
    List<KiePMMLPredicate> retrieved = KiePMMLPredicateFactory
            .getPredicates(predicates, dataDictionary);
    assertEquals(predicates.size(), retrieved.size());
}