protected Map<String, GeneratedResources> compileFile(String fileName,
                                                          ClassLoader parentClassLoader) {
        try {
            EfestoCompilationContext compilationContext =
                    EfestoCompilationContextUtils.buildWithParentClassLoader(parentClassLoader);
            EfestoInputStreamResource toProcess = new EfestoInputStreamResource(documentResource.getInputStream(),
                                                                                fileName);
            compilationManager.processResource(compilationContext, toProcess);
            return compilationContext.getGeneratedResourcesMap();
        } catch (Exception t) {
            String errorMessage = String.format("Compilation error for %s due to %s: please %s",
                                                fileName,
                                                t.getMessage(),
                                                CHECK_CLASSPATH);
            LOG.error(errorMessage);
            throw new KieCompilerServiceException(errorMessage, t);
        }
    }
@Test
    void compileFile() {
        ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
        Map<String, GeneratedResources> retrieved = dmnKiePMMLTrustyInvocationEvaluator.compileFile(pmmlFileName, classLoader);
        assertThat(retrieved).isNotNull().isNotEmpty().containsKey("pmml");
    }