public static DATA_TYPE getDATA_TYPE(final List<Field<?>> fields, String fieldName) {
        Optional<DATA_TYPE> toReturn = fields.stream()
                .filter(fld -> Objects.equals(fieldName,fld.getName()))
                .findFirst()
                .map(dataField -> DATA_TYPE.byName(dataField.getDataType().value()));
        return toReturn.orElseThrow(() -> new KiePMMLInternalException(String.format("Failed to find DATA_TYPE for " +
                                                                                             "field %s",
                                                                                     fieldName)));
    }
@Test
    void getDataTypeNotFound() {
        assertThatExceptionOfType(KiePMMLInternalException.class).isThrownBy(() -> {
            final DataDictionary dataDictionary = new DataDictionary();
            IntStream.range(0, 3).forEach(i -> {
                String fieldName = "field" + i;
                final DataField dataField = getRandomDataField();
                dataField.setName(fieldName);
                dataDictionary.addDataFields(dataField);
            });
            org.kie.pmml.compiler.api.utils.ModelUtils.getDATA_TYPE(getFieldsFromDataDictionary(dataDictionary),
                                                                    "NOT_EXISTING");
        });
    }