@Bean
    @ConditionalOnBean(ShenyuThreadPoolExecutor.class)
    public ShenyuThreadPoolExecutorDestructor shenyuThreadPoolExecutorDestructor() {
        return new ShenyuThreadPoolExecutorDestructor();
    }
@Test
    public void testShenyuThreadPoolExecutorDestructor() {
        ShenyuThreadPoolConfiguration.ShenyuThreadPoolExecutorDestructor shenyuThreadPoolExecutorDestructor =
                shenyuThreadPoolConfiguration.shenyuThreadPoolExecutorDestructor();
        SpringBeanUtils.getInstance().setApplicationContext(mock(ConfigurableApplicationContext.class));
        when(SpringBeanUtils.getInstance().getBean(ShenyuThreadPoolExecutor.class))
                .thenReturn(mock(ShenyuThreadPoolExecutor.class));
        shenyuThreadPoolExecutorDestructor.onApplicationEvent(mock(ContextClosedEvent.class));
        assertNotNull(shenyuThreadPoolExecutorDestructor);
    }