@Test
public void getRegressionTable() {

    KiePMMLOutputField outputFieldCat = getOutputField("CAT-1", RESULT_FEATURE.PROBABILITY, "CatPred-1");
    KiePMMLOutputField outputFieldNum = getOutputField("NUM-1", RESULT_FEATURE.PROBABILITY, "NumPred-0");
    KiePMMLOutputField outputFieldPrev = getOutputField("PREV", RESULT_FEATURE.PREDICTED_VALUE, null);
    List<KiePMMLOutputField> outputFields = Arrays.asList(outputFieldCat, outputFieldNum, outputFieldPrev);
    LinkedHashMap<String, KiePMMLTableSourceCategory> toReturn = new LinkedHashMap<>();
    Map.Entry<String, String> retrieved = KiePMMLRegressionTableClassificationFactory.getRegressionTable(toReturn,
                                                                                                         RegressionModel.NormalizationMethod.SOFTMAX,
                                                                                                         OpType.CATEGORICAL,
                                                                                                         outputFields,
                                                                                                         "targetField",
                                                                                                         "packageName");
    assertNotNull(retrieved);
}