public static Map<String, URI> outputFiles(RunContext runContext, List<String> outputs) throws Exception {
        List<Path> allFilesMatching = runContext.workingDir().findAllFilesMatching(outputs);
        var outputFiles = allFilesMatching.stream()
            .map(throwFunction(path -> new AbstractMap.SimpleEntry<>(
                runContext.workingDir().path().relativize(path).toString(),
                runContext.storage().putFile(path.toFile(), resolveUniqueNameForFile(path))
            )))
            .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue));

        if (runContext.logger().isTraceEnabled()) {
            runContext.logger().trace("Captured {} output(s).", allFilesMatching.size());
        }

        return outputFiles;
    }
@Test
    void outputFiles() throws Exception {
        RunContext runContext = runContextFactory.of();
        Map<String, String> files = FilesService.inputFiles(runContext, Map.of("file.txt", "content"));

        Map<String, URI> outputs = FilesService.outputFiles(runContext, files.keySet().stream().toList());
        assertThat(outputs.size(), is(1));
    }