@Override
    public String execute(CommandContext commandContext, String[] args) {
        if (commandContext.isHttp()) {
            Map<String, Object> result = new HashMap<>();
            result.put("checkStatus", serializeCheckUtils.getStatus());
            result.put("checkSerializable", serializeCheckUtils.isCheckSerializable());
            result.put("allowedPrefix", serializeCheckUtils.getAllowedList());
            result.put("disAllowedPrefix", serializeCheckUtils.getDisAllowedList());

            return JsonUtils.toJson(result);
        } else {
            return "CheckStatus: " + serializeCheckUtils.getStatus() + "\n\n" + "CheckSerializable: "
                    + serializeCheckUtils.isCheckSerializable() + "\n\n" + "AllowedPrefix:"
                    + "\n"
                    + serializeCheckUtils.getAllowedList().stream().sorted().collect(Collectors.joining("\n"))
                    + "\n\n"
                    + "DisAllowedPrefix:"
                    + "\n"
                    + serializeCheckUtils.getDisAllowedList().stream().sorted().collect(Collectors.joining("\n"))
                    + "\n\n";
        }
    }
@Test
    void testNotify() {
        FrameworkModel frameworkModel = new FrameworkModel();

        SerializeSecurityManager ssm = frameworkModel.getBeanFactory().getBean(SerializeSecurityManager.class);

        SerializeCheckStatus serializeCheckStatus = new SerializeCheckStatus(frameworkModel);

        CommandContext commandContext1 = Mockito.mock(CommandContext.class);
        Mockito.when(commandContext1.isHttp()).thenReturn(false);
        CommandContext commandContext2 = Mockito.mock(CommandContext.class);
        Mockito.when(commandContext2.isHttp()).thenReturn(true);

        Assertions.assertFalse(
                serializeCheckStatus.execute(commandContext1, null).contains("Test1234"));
        Assertions.assertFalse(
                serializeCheckStatus.execute(commandContext2, null).contains("Test1234"));
        ssm.addToAllowed("Test1234");
        Assertions.assertTrue(
                serializeCheckStatus.execute(commandContext1, null).contains("Test1234"));
        Assertions.assertTrue(
                serializeCheckStatus.execute(commandContext2, null).contains("Test1234"));

        Assertions.assertFalse(
                serializeCheckStatus.execute(commandContext1, null).contains("Test4321"));
        Assertions.assertFalse(
                serializeCheckStatus.execute(commandContext2, null).contains("Test4321"));
        ssm.addToDisAllowed("Test4321");
        Assertions.assertTrue(
                serializeCheckStatus.execute(commandContext1, null).contains("Test4321"));
        Assertions.assertTrue(
                serializeCheckStatus.execute(commandContext2, null).contains("Test4321"));

        Assertions.assertFalse(
                serializeCheckStatus.execute(commandContext1, null).contains("CheckSerializable: false"));
        Assertions.assertFalse(
                serializeCheckStatus.execute(commandContext2, null).contains("\"checkSerializable\":false"));
        ssm.setCheckSerializable(false);
        Assertions.assertTrue(
                serializeCheckStatus.execute(commandContext1, null).contains("CheckSerializable: false"));
        Assertions.assertTrue(
                serializeCheckStatus.execute(commandContext2, null).contains("\"checkSerializable\":false"));

        Assertions.assertFalse(
                serializeCheckStatus.execute(commandContext1, null).contains("CheckStatus: DISABLE"));
        Assertions.assertFalse(
                serializeCheckStatus.execute(commandContext2, null).contains("\"checkStatus\":\"DISABLE\""));
        ssm.setCheckStatus(org.apache.dubbo.common.utils.SerializeCheckStatus.DISABLE);
        Assertions.assertTrue(
                serializeCheckStatus.execute(commandContext1, null).contains("CheckStatus: DISABLE"));
        Assertions.assertTrue(
                serializeCheckStatus.execute(commandContext2, null).contains("\"checkStatus\":\"DISABLE\""));

        frameworkModel.destroy();
    }