@Override
    public String execute(CommandContext commandContext, String[] args) {
        String config = frameworkModel.getApplicationModels().stream()
                .map(applicationModel ->
                        applicationModel.getApplicationConfigManager().getApplication())
                .map(o -> o.orElse(null))
                .filter(Objects::nonNull)
                .map(ApplicationConfig::getLivenessProbe)
                .filter(Objects::nonNull)
                .collect(Collectors.joining(","));
        URL url = URL.valueOf("application://").addParameter(CommonConstants.QOS_LIVE_PROBE_EXTENSION, config);
        List<LivenessProbe> livenessProbes = frameworkModel
                .getExtensionLoader(LivenessProbe.class)
                .getActivateExtension(url, CommonConstants.QOS_LIVE_PROBE_EXTENSION);
        if (!livenessProbes.isEmpty()) {
            for (LivenessProbe livenessProbe : livenessProbes) {
                if (!livenessProbe.check()) {
                    // 503 Service Unavailable
                    commandContext.setHttpCode(503);
                    return "false";
                }
            }
        }
        // 200 OK
        commandContext.setHttpCode(200);
        return "true";
    }
@Test
    void testExecute() {
        Live live = new Live(frameworkModel);
        CommandContext commandContext = new CommandContext("live");
        String result = live.execute(commandContext, new String[0]);
        Assertions.assertEquals(result, "false");
        Assertions.assertEquals(commandContext.getHttpCode(), 503);

        MockLivenessProbe.setCheckReturnValue(true);
        result = live.execute(commandContext, new String[0]);
        Assertions.assertEquals(result, "true");
        Assertions.assertEquals(commandContext.getHttpCode(), 200);
    }