### Question:
SocialAuthenticationProvider implements AuthenticationProvider { public boolean supports(Class<? extends Object> authentication) { return SocialAuthenticationToken.class.isAssignableFrom(authentication); } SocialAuthenticationProvider(UsersConnectionRepository usersConnectionRepository, SocialUserDetailsService userDetailsService); boolean supports(Class<? extends Object> authentication); Authentication authenticate(Authentication authentication);  }### Answer:
@Test public void supports() { SocialAuthenticationProvider provider = new SocialAuthenticationProvider(null, null); assertTrue(provider.supports(SocialAuthenticationToken.class)); assertFalse(provider.supports(Authentication.class)); }