public static Map<String, String> getKiePMMLScorecardModelSourcesMap(final DroolsCompilationDTO<Scorecard> compilationDTO) {
        logger.trace("getKiePMMLScorecardModelSourcesMap {} {} {}", compilationDTO.getFields(),
                     compilationDTO.getModel(), compilationDTO.getPackageName());
        CompilationUnit cloneCU = getKiePMMLModelCompilationUnit(compilationDTO,
                                                                 KIE_PMML_SCORECARD_MODEL_TEMPLATE_JAVA,
                                                                 KIE_PMML_SCORECARD_MODEL_TEMPLATE);
        String className = compilationDTO.getSimpleClassName();
        ClassOrInterfaceDeclaration modelTemplate = cloneCU.getClassByName(className)
                .orElseThrow(() -> new KiePMMLException(MAIN_CLASS_NOT_FOUND + ": " + className));
        setConstructor(compilationDTO,
                       modelTemplate);
        Map<String, String> toReturn = new HashMap<>();
        String fullClassName = compilationDTO.getPackageCanonicalClassName();
        toReturn.put(fullClassName, cloneCU.toString());
        return toReturn;
    }
@Test
    void getKiePMMLScorecardModelSourcesMap() {
        final DataDictionary dataDictionary = pmml.getDataDictionary();
        final Map<String, KiePMMLOriginalTypeGeneratedType> fieldTypeMap = getFieldTypeMap(dataDictionary,
                pmml.getTransformationDictionary(),
                scorecardModel.getLocalTransformations());
        final CommonCompilationDTO<Scorecard> compilationDTO =
                CommonCompilationDTO.fromGeneratedPackageNameAndFields(PACKAGE_NAME,
                                                                       pmml,
                                                                       scorecardModel,
                                                                       new PMMLCompilationContextMock(), "FILENAME");
        final DroolsCompilationDTO<Scorecard> droolsCompilationDTO =
                DroolsCompilationDTO.fromCompilationDTO(compilationDTO,
                        fieldTypeMap);
        Map<String, String> retrieved =
                KiePMMLScorecardModelFactory.getKiePMMLScorecardModelSourcesMap(droolsCompilationDTO);
        assertThat(retrieved).isNotNull();
        assertThat(retrieved).hasSize(1);
    }