static void populateMissingModelName(final Model model, final String fileName, int i) {
        if (model.getModelName() == null || model.getModelName().isEmpty()) {
            String modelName = String.format(MODELNAME_TEMPLATE,
                                             fileName,
                                             model.getClass().getSimpleName(),
                                             i);
            model.setModelName(modelName);
        }
    }
@Test
    void populateMissingModelName() throws Exception {
        final InputStream inputStream = getFileInputStream(NO_MODELNAME_SAMPLE_NAME);
        final PMML pmml = org.jpmml.model.PMMLUtil.unmarshal(inputStream);
        final Model toPopulate = pmml.getModels().get(0);
        assertThat(toPopulate.getModelName()).isNull();
        KiePMMLUtil.populateMissingModelName(toPopulate, NO_MODELNAME_SAMPLE_NAME, 0);
        assertThat(toPopulate.getModelName()).isNotNull();
        String expected = String.format(MODELNAME_TEMPLATE,
                NO_MODELNAME_SAMPLE_NAME,
                toPopulate.getClass().getSimpleName(),
                0);
        assertThat(toPopulate.getModelName()).isEqualTo(expected);
    }