JoinfacesAutoConfiguration { @Bean @ConditionalOnMissingBean({ RequestContextListener.class, RequestContextFilter.class }) @ConditionalOnMissingFilterBean(RequestContextFilter.class) public static RequestContextFilter requestContextFilter() { return new OrderedRequestContextFilter(); }  @Bean @ConditionalOnMissingBean({ RequestContextListener.class, RequestContextFilter.class }) @ConditionalOnMissingFilterBean(RequestContextFilter.class) static RequestContextFilter requestContextFilter();  }
@Test public void requestContextFilter() { this.webApplicationContextRunner.run(context -> { assertThat(context).hasSingleBean(RequestContextFilter.class); }); }