static void populateEvaluateNodeWithPredicate(final BlockStmt toPopulate,
                                                  final Predicate predicate,
                                                  final List<Field<?>> fields) {
        // set predicate
        BlockStmt toAdd = getKiePMMLPredicate(PREDICATE, predicate, fields);
        final NodeList<Statement> predicateStatements = toAdd.getStatements();
        for (int i = 0; i < predicateStatements.size(); i ++) {
            toPopulate.addStatement(i, predicateStatements.get(i));
        }
    }
@Test
    void populateEvaluateNodeWithPredicateFunction() throws IOException {
        BlockStmt toPopulate = new BlockStmt();
        KiePMMLNodeFactory.populateEvaluateNodeWithPredicate(toPopulate,
                compoundPredicateNode.getPredicate(),
                getFieldsFromDataDictionaryAndDerivedFields(dataDictionary2, derivedFields2));
        String text = getFileContent(TEST_01_SOURCE);
        Statement expected = JavaParserUtils.parseBlock(text);
        assertThat(JavaParserUtils.equalsNode(expected, toPopulate)).isTrue();
    }