@Override
    public void onAddClassLoader(ModuleModel scopeModel, ClassLoader classLoader) {
        refreshClassLoader(classLoader);
    }
@Test
    void testConfig3() {
        FrameworkModel frameworkModel = new FrameworkModel();
        ApplicationModel applicationModel = frameworkModel.newApplication();
        ModuleModel moduleModel = applicationModel.newModule();
        System.setProperty(CLASS_DESERIALIZE_ALLOWED_LIST, "test.package1, test.package2, ,");
        System.setProperty(CLASS_DESERIALIZE_BLOCKED_LIST, "test.package1, test.package2, ,");

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

        SerializeSecurityConfigurator serializeSecurityConfigurator = new SerializeSecurityConfigurator(moduleModel);
        serializeSecurityConfigurator.onAddClassLoader(
                moduleModel, Thread.currentThread().getContextClassLoader());

        Assertions.assertTrue(ssm.getAllowedPrefix().contains("test.package1"));
        Assertions.assertTrue(ssm.getAllowedPrefix().contains("test.package2"));

        System.clearProperty(CommonConstants.CLASS_DESERIALIZE_ALLOWED_LIST);
        System.clearProperty(CommonConstants.CLASS_DESERIALIZE_BLOCK_ALL);
        frameworkModel.destroy();
    }