### Question:
CertificateAuthenticationProvider implements AuthenticationProvider { @Override public boolean supports(Class<?> authentication) { return authentication == PreAuthenticatedAuthenticationToken.class; }  @Override Authentication authenticate(Authentication authentication); @Override boolean supports(Class<?> authentication);  }### Answer:
@Test void supports() { CertificateAuthenticationProvider cap = new CertificateAuthenticationProvider(); assertTrue(cap.supports(PreAuthenticatedAuthenticationToken.class)); assertFalse(cap.supports(AuthenticationProvider.class)); }