### Question:
JwtAuthenticationProvider implements AuthenticationProvider { @Override public boolean supports(Class<?> authentication) { return JwtAuthenticationToken.class.isAssignableFrom(authentication); }  @Override boolean supports(Class<?> authentication); @Override Authentication authenticate(Authentication authentication);  }### Answer:
@Test public void supportsShouldReturnFalse() { JwtAuthenticationProvider jwtAuthenticationProvider = new JwtAuthenticationProvider(); Assert.assertFalse(jwtAuthenticationProvider.supports(UsernamePasswordAuthenticationToken.class)); }
@Test public void supportsShouldReturnTrue() { JwtAuthenticationProvider jwtAuthenticationProvider = new JwtAuthenticationProvider(); Assert.assertFalse(jwtAuthenticationProvider.supports(JwtAuthenticationFilter.class)); }