@Override
    public Integer call() throws Exception {
        super.call();

        EnvironmentEndpoint endpoint = applicationContext.getBean(EnvironmentEndpoint.class);
        stdOut(JacksonMapper.ofYaml().writeValueAsString(endpoint.getEnvironmentInfo()));

        return 0;
    }
@Test
    void run() {
        ByteArrayOutputStream out = new ByteArrayOutputStream();
        System.setOut(new PrintStream(out));

        try (ApplicationContext ctx = ApplicationContext.run(Environment.CLI, Environment.TEST)) {
            PicocliRunner.call(ConfigPropertiesCommand.class, ctx);

            assertThat(out.toString(), containsString("activeEnvironments:"));
            assertThat(out.toString(), containsString("- test"));
        }
    }