### Question:
CasAuthenticationFilterConfigurer { void configure(CasAuthenticationFilter filter) { if (requiresAuthenticationRequestMatcher != null) { filter.setRequiresAuthenticationRequestMatcher(requiresAuthenticationRequestMatcher); } if (authenticationFailureHandler != null) { filter.setAuthenticationFailureHandler(authenticationFailureHandler); } if (proxyAuthenticationFailureHandler != null) { filter.setProxyAuthenticationFailureHandler(proxyAuthenticationFailureHandler); } if (authenticationSuccessHandler != null) { filter.setAuthenticationSuccessHandler(authenticationSuccessHandler); } if (proxyReceptorUrl != null) { filter.setProxyReceptorUrl(proxyReceptorUrl); } if (proxyGrantingTicketStorage != null) { filter.setProxyGrantingTicketStorage(proxyGrantingTicketStorage); } if (serviceAuthenticationDetailsSource != null) { filter.setAuthenticationDetailsSource(serviceAuthenticationDetailsSource); } }    }### Answer:
@Test public void configure_WithAnyParameters_InjectInsideCasAuthenticationFilter() { ProxyGrantingTicketStorage proxyGrantingTicketStorage = Mockito.mock(ProxyGrantingTicketStorage.class); ServiceAuthenticationDetailsSource serviceAuthenticationDetailsSource = Mockito.mock(ServiceAuthenticationDetailsSource.class); String proxyReceptorUrl = "dummyProxyReceptorUrl"; AuthenticationFailureHandler authenticationFailureHandler = Mockito.mock(AuthenticationFailureHandler.class); AuthenticationSuccessHandler authenticationSuccessHandler = Mockito.mock(AuthenticationSuccessHandler.class); AuthenticationFailureHandler proxyAuthenticationFailureHandler = Mockito.mock(AuthenticationFailureHandler.class); RequestMatcher requestMatcher = Mockito.mock(RequestMatcher.class); CasAuthenticationFilter filter = new CasAuthenticationFilter(); CasAuthenticationFilterConfigurer configurer = new CasAuthenticationFilterConfigurer(); configurer.proxyGrantingTicketStorage(proxyGrantingTicketStorage) .proxyReceptorUrl(proxyReceptorUrl) .serviceAuthenticationDetailsSource(serviceAuthenticationDetailsSource) .authenticationFailureHandler(authenticationFailureHandler) .authenticationSuccessHandler(authenticationSuccessHandler) .proxyAuthenticationFailureHandler(proxyAuthenticationFailureHandler) .requiresAuthenticationRequestMatcher(requestMatcher); configurer.configure(filter); assertThat(filter) .hasFieldOrPropertyWithValue("proxyGrantingTicketStorage", proxyGrantingTicketStorage) .hasFieldOrPropertyWithValue("authenticationDetailsSource", serviceAuthenticationDetailsSource) .hasFieldOrPropertyWithValue("successHandler", authenticationSuccessHandler) .hasFieldOrPropertyWithValue("proxyFailureHandler", proxyAuthenticationFailureHandler) .hasFieldOrPropertyWithValue("requiresAuthenticationRequestMatcher", requestMatcher) .hasFieldOrPropertyWithValue("proxyReceptorMatcher", new AntPathRequestMatcher("/**" + proxyReceptorUrl)) .hasFieldOrPropertyWithValue("failureHandler.serviceTicketFailureHandler", authenticationFailureHandler); }