static void populateTransformationsInConstructor(final ConstructorDeclaration constructorDeclaration,
                                                     final String createTransformationDictionary,
                                                     final String createLocalTransformations) {
        Expression createTransformationDictionaryInitializer = createTransformationDictionary != null ?
                new MethodCallExpr(new NameExpr("this"), createTransformationDictionary, NodeList.nodeList()) :
                new NullLiteralExpr();
        setAssignExpressionValue(constructorDeclaration.getBody(), TRANSFORMATION_DICTIONARY,
                                 createTransformationDictionaryInitializer);
        Expression createLocalTransformationsInitializer = createLocalTransformations != null ?
                new MethodCallExpr(new NameExpr("this"), createLocalTransformations, NodeList.nodeList()) :
                new NullLiteralExpr();
        setAssignExpressionValue(constructorDeclaration.getBody(), LOCAL_TRANSFORMATIONS,
                                 createLocalTransformationsInitializer);
    }
@Test
    void populateTransformationsInConstructor() throws IOException {
        final String createTransformationDictionary = "createTransformationDictionary";
        final String createLocalTransformations = "createLocalTransformations";
        org.kie.pmml.compiler.commons.codegenfactories.KiePMMLModelFactoryUtils.populateTransformationsInConstructor(constructorDeclaration,
                                                                                                                     createTransformationDictionary,
                                                                                                                     createLocalTransformations);
        String text = getFileContent(TEST_07_SOURCE);
        BlockStmt expected = JavaParserUtils.parseConstructorBlock(text);
        assertThat(JavaParserUtils.equalsNode(expected, constructorDeclaration.getBody())).isTrue();
    }