@Test
    void verifyNoEmailOrPhone() throws Throwable {
        val service = RegisteredServiceTestUtils.getService(UUID.randomUUID().toString());
        val registeredService = RegisteredServiceTestUtils.getRegisteredService(service.getId());
        registeredService.setAccessStrategy(new DefaultRegisteredServiceAccessStrategy());
        servicesManager.save(registeredService);

        mockMvc.perform(post("/actuator/passwordManagement/reset/none")
            .contentType(MediaType.APPLICATION_FORM_URLENCODED)
            .accept(MediaType.APPLICATION_JSON)
            .queryParam(CasProtocolConstants.PARAMETER_SERVICE, service.getId())
        ).andExpect(status().isUnprocessableEntity());
    }
This is {@link PasswordManagementEndpointTests}.

@author Misagh Moayyed
@since 7.2.0
support/cas-server-support-pm-webflow/src/test/java/org/apereo/cas/pm/web/PasswordManagementEndpointTests.java