@Test
    void verifyOperation() throws Throwable {
        val s = new DefaultPasswordPolicyHandlingStrategy<>();
        assertTrue(s.handle(new Object(), null).isEmpty());
        val cfg = new PasswordPolicyContext(30);
        cfg.setAccountStateHandler((o, o2) -> List.of(new DefaultMessageDescriptor("bad.password")));
        assertFalse(s.handle(new Object(), cfg).isEmpty());
    }
This is {@link DefaultPasswordPolicyHandlingStrategyTests}.

@author Misagh Moayyed
@since 6.1.0
core/cas-server-core-authentication-api/src/test/java/org/apereo/cas/authentication/support/password/DefaultPasswordPolicyHandlingStrategyTests.java