### Question:
BasicAuthenticationProvider implements AuthenticationProvider { @Override public boolean supports(Class<?> authentication) { return authentication.equals(UsernamePasswordAuthenticationToken.class); } @Autowired  BasicAuthenticationProvider(UserDetailsService userDetailsService); @Override Authentication authenticate(Authentication authentication); @Override boolean supports(Class<?> authentication);  }### Answer:
@Test public void testSupports() { assertThat(basicAuthenticationProvider.supports(UsernamePasswordAuthenticationToken.class)).isTrue(); assertThat(basicAuthenticationProvider.supports(Integer.class)).isFalse(); }