@Test
public void setConstructor() {

    ConstructorDeclaration constructorDeclaration = modelTemplate.getDefaultConstructor().get();
    SimpleName generatedClassName = new SimpleName("GeneratedClassName");
    String targetField = "targetField";
    REGRESSION_NORMALIZATION_METHOD regressionNormalizationMethod = REGRESSION_NORMALIZATION_METHOD.CAUCHIT;
    OP_TYPE opType = OP_TYPE.CATEGORICAL;
    KiePMMLRegressionTableClassificationFactory.setConstructor(constructorDeclaration,
                                                               generatedClassName,
                                                               targetField,
                                                               regressionNormalizationMethod,
                                                               opType);
    Map<Integer, Expression> superInvocationExpressionsMap = new HashMap<>();
    Map<String, Expression> assignExpressionMap = new HashMap<>();
    assignExpressionMap.put("targetField", new StringLiteralExpr(targetField));
    assignExpressionMap.put("regressionNormalizationMethod",
                            new NameExpr(regressionNormalizationMethod.getClass().getSimpleName() + "." + regressionNormalizationMethod.name()));
    assignExpressionMap.put("opType", new NameExpr(opType.getClass().getSimpleName() + "." + opType.name()));
    assertTrue(commonEvaluateConstructor(constructorDeclaration, generatedClassName.asString(),
                                         superInvocationExpressionsMap, assignExpressionMap));
}