@Override
    public Integer call() throws Exception {
        super.call();
        stdErr("Warning, this functionality is deprecated and will be removed at some point.");
        String content = IncludeHelperExpander.expand(Files.readString(file), file.getParent());
        Flow flow = yamlFlowParser.parse(content, Flow.class);
        modelValidator.validate(flow);
        stdOut(content);
        return 0;
    }
@SuppressWarnings("deprecation")
    @Test
    void run() {
        ByteArrayOutputStream out = new ByteArrayOutputStream();
        System.setOut(new PrintStream(out));

        try (ApplicationContext ctx = ApplicationContext.builder().deduceEnvironment(false).start()) {
            String[] args = {
                "src/test/resources/helper/flow.yaml"
            };
            Integer call = PicocliRunner.call(FlowExpandCommand.class, ctx, args);

            assertThat(call, is(0));
            assertThat(out.toString(), is(
                "id: include\n" +
                    "namespace: io.kestra.cli\n" +
                    "\n" +
                    "# The list of tasks\n" +
                    "tasks:\n" +
                    "- id: t1\n" +
                    "  type: io.kestra.plugin.core.debug.Return\n" +
                    "  format: \"Lorem ipsum dolor sit amet\"\n" +
                    "- id: t2\n" +
                    "  type: io.kestra.plugin.core.debug.Return\n" +
                    "  format: |\n" +
                    "    Lorem ipsum dolor sit amet\n" +
                    "    Lorem ipsum dolor sit amet\n"
            ));
        }
    }