### Question:
AuthProviderInitializer { public void configure(AuthenticationManagerBuilder auth) { auth.authenticationProvider(loginAuthProvider); auth.authenticationProvider(tokenAuthenticationProvider); auth.authenticationProvider(certificateAuthenticationProvider); } AuthProviderInitializer(CompoundAuthProvider loginAuthProvider,
                                   TokenAuthenticationProvider tokenAuthenticationProvider,
                                   CertificateAuthenticationProvider certificateAuthenticationProvider); void configure(AuthenticationManagerBuilder auth);  }### Answer:
@Test void givenValidProviders_whenTheClassIsCreated_thenTheProvidersArePassedToSpring() { AuthProviderInitializer authProviderInitializer = new AuthProviderInitializer( loginAuthProvider, tokenAuthenticationProvider, certificateAuthenticationProvider ); AuthenticationManagerBuilder authenticationManagerBuilder = mock(AuthenticationManagerBuilder.class); authProviderInitializer.configure(authenticationManagerBuilder); verify(authenticationManagerBuilder).authenticationProvider(loginAuthProvider); verify(authenticationManagerBuilder).authenticationProvider(tokenAuthenticationProvider); verify(authenticationManagerBuilder).authenticationProvider(certificateAuthenticationProvider); }