### Question:
OauthConfig { @Bean public FilterRegistrationBean tokenAuthenticationFilterRegistration() { FilterRegistrationBean filterRegistrationBean = new FilterRegistrationBean<>(tokenAuthenticationFilter); filterRegistrationBean.setOrder(0); return filterRegistrationBean; }  @Bean FilterRegistrationBean tokenAuthenticationFilterRegistration();  }### Answer:
@Test void tokenAuthenticationFilterRegistration() { FilterRegistrationBean filterRegistrationBean = oauthConfig.tokenAuthenticationFilterRegistration(); assertEquals(0, filterRegistrationBean.getOrder()); assertEquals(tokenAuthenticationFilter, filterRegistrationBean.getFilter()); }