@Bean
    public MotanServiceEventListener motanServiceEventListener(final ShenyuClientConfig clientConfig, final ShenyuClientRegisterRepository shenyuClientRegisterRepository) {
        return new MotanServiceEventListener(clientConfig.getClient().get(RpcTypeEnum.MOTAN.getName()), shenyuClientRegisterRepository);
    }
@Test
    public void testMotanServiceEventListener() {
        MockedStatic<RegisterUtils> registerUtilsMockedStatic = mockStatic(RegisterUtils.class);
        registerUtilsMockedStatic.when(() -> RegisterUtils.doLogin(any(), any(), any())).thenReturn(Optional.ofNullable("token"));
        new ApplicationContextRunner()
            .withConfiguration(AutoConfigurations.of(ShenyuMotanClientConfiguration.class))
            .withBean(ShenyuMotanClientConfigurationTest.class)
            .withBean(ProtocolConfigBean.class)
            .withPropertyValues(
                "debug=true",
                "shenyu.register.registerType=http",
                "shenyu.register.serverLists=http://localhost:9095",
                "shenyu.register.props.username=admin",
                "shenyu.register.props.password=123456",
                "shenyu.client.motan.props[contextPath]=/motan",
                "shenyu.client.motan.props[appName]=motan",
                "shenyu.client.motan.props[host]=127.0.0.1",
                "shenyu.client.motan.props[port]=8081",
                "shenyu.client.motan.basicServiceConfig.exportPort=8002"
            )
            .run(context -> {
                MotanServiceEventListener motanServiceEventListener = context.getBean("motanServiceEventListener", MotanServiceEventListener.class);
                assertNotNull(motanServiceEventListener);
            });
        registerUtilsMockedStatic.close();
    }