/** * Verifies that the authentication provider doesn't support other authentication request types. */ @Test public void shouldNotSupportOtherAuthenticationRequests() { logger.debug( "Verifying that the authentication provider does not support other authentication requests..."); assertFalse(authnProvider.supports(LdapAuthenticator.class)); }
/** Verifies that the authentication provider supports instances of Saml2AuthenticationToken. */ @Test public void shouldSupportSaml2AuthenticationTokens() { logger.debug( "Verifying that the authentication provider supports instances of Saml2AuthenticationToken..."); assertTrue(authnProvider.supports(Saml2AuthenticationToken.class)); }