@Test
    void verifyOperation() throws Throwable {
        val credential = RegisteredServiceTestUtils.getCredentialsWithSameUsernameAndPassword("casuser");
        assertTrue(passwordStrengthAuthenticationPostProcessor.supports(credential));
        val transaction = CoreAuthenticationTestUtils.getAuthenticationTransactionFactory()
            .newTransaction(RegisteredServiceTestUtils.getService("service"), credential);
        val builder = mock(AuthenticationBuilder.class);
        val exception = assertThrows(WeakPasswordException.class,
            () -> passwordStrengthAuthenticationPostProcessor.process(builder, transaction));

        val requestContext = MockRequestContext.create(applicationContext);
        assertTrue(weakPasswordWebflowExceptionHandler.supports(exception, requestContext));
        val event = weakPasswordWebflowExceptionHandler.handle(exception, requestContext);
        assertEquals(WeakPasswordException.class.getSimpleName(), event.getId());
    }
This is {@link PasswordStrengthAuthenticationPostProcessorTests}.

@author Misagh Moayyed
@since 7.0.0
support/cas-server-support-pm-webflow/src/test/java/org/apereo/cas/pm/PasswordStrengthAuthenticationPostProcessorTests.java