@Test
public void getRegressionTables() {

    RegressionTable regressionTableProf = getRegressionTable(3.5, "professional");
    RegressionTable regressionTableCler = getRegressionTable(27.4, "clerical");
    List<RegressionTable> regressionTables = Arrays.asList(regressionTableProf, regressionTableCler);
    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);
    Map<String, KiePMMLTableSourceCategory> retrieved =
            KiePMMLRegressionTableClassificationFactory.getRegressionTables(regressionTables,
                                                                            RegressionModel.NormalizationMethod.SOFTMAX,
                                                                            OpType.CATEGORICAL,
                                                                            outputFields,
                                                                            "targetField",
                                                                            "packageName");
    assertNotNull(retrieved);
    assertEquals(3, retrieved.size());
    retrieved.values().forEach(kiePMMLTableSourceCategory -> commonValidateKiePMMLRegressionTable(kiePMMLTableSourceCategory.getSource()));
}