@Test
public void setConstructor() {

    regressionTable = getRegressionTable(3.5, "professional");
    ConstructorDeclaration constructorDeclaration = modelTemplate.getDefaultConstructor().get();
    SimpleName tableName = new SimpleName("TableName");
    String targetField = "targetField";
    KiePMMLRegressionTableRegressionFactory.setConstructor(regressionTable,
                                                           constructorDeclaration,
                                                           tableName,
                                                           targetField);
    Map<Integer, Expression> superInvocationExpressionsMap = new HashMap<>();
    Map<String, Expression> assignExpressionMap = new HashMap<>();
    assignExpressionMap.put("targetField", new StringLiteralExpr(targetField));
    assignExpressionMap.put("intercept", new DoubleLiteralExpr(String.valueOf(3.5)));
    assertTrue(commonEvaluateConstructor(constructorDeclaration, tableName.asString(),
                                         superInvocationExpressionsMap, assignExpressionMap));
}