@Test
    void verifyGoodTicket() throws Throwable {
        val query = PasswordManagementQuery.builder()
                .username("casuser").email("casuser@email.com").build();
        val token = passwordManagementService.createToken(query);

        val id = UUID.randomUUID().toString();
        val ticket = new TransientSessionTicketImpl(id, NeverExpiresExpirationPolicy.INSTANCE,
                CoreAuthenticationTestUtils.getService(), Map.of(TOKEN, token));
        ticketRegistry.addTicket(ticket);

        val context = MockRequestContext.create(applicationContext);
        context.setParameter(PasswordManagementService.PARAMETER_PASSWORD_RESET_TOKEN, ticket.getId());
        assertEquals(CasWebflowConstants.TRANSITION_ID_RESET_PASSWORD, validatePasswordResetTokenAction.execute(context).getId());
    }
This is {@link ValidatePasswordResetTokenActionTests}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-pm-webflow/src/test/java/org/apereo/cas/pm/web/flow/actions/ValidatePasswordResetTokenActionTests.java