@Test
public void setConstructor() {

    ConstructorDeclaration constructorDeclaration = classOrInterfaceDeclaration.getDefaultConstructor().get();
    SimpleName simpleName = new SimpleName("SIMPLENAME");
    KiePMMLTreeModelFactory.setConstructor(treeModel,
                                           constructorDeclaration,
                                           simpleName);
    Map<Integer, Expression> superInvocationExpressionsMap = new HashMap<>();
    superInvocationExpressionsMap.put(0, new NameExpr(String.format("\"%s\"", treeModel.getModelName())));
    superInvocationExpressionsMap.put(2, new NameExpr(String.format("\"%s\"", treeModel.getAlgorithmName())));
    Map<String, Expression> assignExpressionMap = new HashMap<>();
    assignExpressionMap.put("targetField", new NameExpr("targetField"));
    assignExpressionMap.put("miningFunction", new NullLiteralExpr());
    assignExpressionMap.put("pmmlMODEL", new NullLiteralExpr());
    assertTrue(commonEvaluateConstructor(constructorDeclaration, simpleName.asString(), superInvocationExpressionsMap, assignExpressionMap));
}