@Bean
    public FilterRegistrationBean<AuthFilter> authFilterRegistration(AuthFilter authFilter) {
        FilterRegistrationBean<AuthFilter> registration = new FilterRegistrationBean<>();
        registration.setFilter(authFilter);
        registration.addUrlPatterns("/*");
        registration.setName("authFilter");
        registration.setOrder(6);
        
        return registration;
    }
@Test
    void testAuthFilterRegistration() {
        AuthConfig config = new AuthConfig();
        FilterRegistrationBean filter = config.authFilterRegistration(authFilter);
        assertTrue(filter.getFilter() instanceof AuthFilter);
        
        assertTrue(filter.getUrlPatterns().contains("/*"));
        
        assertEquals(6, filter.getOrder());
    }