WeldSpringBootAutoConfiguration { @Bean public ServletContainerInitializerRegistrationBean<EnhancedListener> weldServletContainerInitializer() { return new ServletContainerInitializerRegistrationBean<>(EnhancedListener.class); }  @Bean ServletContainerInitializerRegistrationBean<EnhancedListener> weldServletContainerInitializer();  }
@Test public void testWeldServletContainerInitializer() { ServletContainerInitializerRegistrationBean<EnhancedListener> weldServletContainerInitializer = this.weldSpringBootAutoConfiguration.weldServletContainerInitializer(); assertThat(weldServletContainerInitializer).isNotNull(); assertThat(weldServletContainerInitializer.getServletContainerInitializerClass()).isEqualTo(EnhancedListener.class); }