static OpType getTargetOpType(final MiningFunction miningFunction) {
        switch (miningFunction) {
            case REGRESSION:
                return OpType.CONTINUOUS;
            case CLASSIFICATION:
            case CLUSTERING:
                return OpType.CATEGORICAL;
            default:
                return null;
        }
    }
@Test
    void getTargetOpType()  {
        MiningFunction miningFunction = MiningFunction.REGRESSION;
        OpType retrieved = KiePMMLUtil.getTargetOpType(miningFunction);
        assertThat(retrieved).isEqualTo(OpType.CONTINUOUS);
        miningFunction = MiningFunction.CLASSIFICATION;
        retrieved = KiePMMLUtil.getTargetOpType(miningFunction);
        assertThat(retrieved).isEqualTo(OpType.CATEGORICAL);
        miningFunction = MiningFunction.CLUSTERING;
        retrieved = KiePMMLUtil.getTargetOpType(miningFunction);
        assertThat(retrieved).isEqualTo(OpType.CATEGORICAL);
        List<MiningFunction> notMappedMiningFunctions = Arrays.asList(MiningFunction.ASSOCIATION_RULES,
                MiningFunction.MIXED,
                MiningFunction.SEQUENCES,
                MiningFunction.TIME_SERIES);

        notMappedMiningFunctions.forEach(minFun -> assertThat(KiePMMLUtil.getTargetOpType(minFun)).isNull());
    }