@Test
    void verifyStrategySupportsDefault() {
        val s = new RejectResultCodeLdapPasswordPolicyHandlingStrategy();
        val res = mock(AuthenticationResponse.class);
        when(res.getAuthenticationResultCode()).thenReturn(AuthenticationResultCode.INVALID_CREDENTIAL);
        assertFalse(s.supports(null));

        when(res.isSuccess()).thenReturn(false);
        assertFalse(s.supports(res));

        when(res.isSuccess()).thenReturn(true);
        assertFalse(s.supports(res));
    }
This is {@link RejectResultCodeLdapPasswordPolicyHandlingStrategyTests}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-ldap-core/src/test/java/org/apereo/cas/authentication/support/RejectResultCodeLdapPasswordPolicyHandlingStrategyTests.java