@Test
    void verifyUserQuestionsCanBeFound() throws Throwable {
        val questions = passwordChangeService.getSecurityQuestions(PasswordManagementQuery.builder().username("casuser").build());
        assertEquals(2, questions.size());
        assertTrue(passwordChangeService.getSecurityQuestions(
            PasswordManagementQuery.builder().username(UUID.randomUUID().toString()).build()).isEmpty());
    }
This is {@link JsonResourcePasswordManagementServiceTests}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-pm/src/test/java/org/apereo/cas/pm/impl/JsonResourcePasswordManagementServiceTests.java