@Test
    void verifyPermTicketNoPolicy() throws Throwable {
        val permissionTicket = getPermissionTicketWith(List.of("read", "write"));

        var results = authenticateUmaRequestWithAuthorizationScope();

        val authzRequest = new UmaAuthorizationRequest();
        authzRequest.setGrantType(OAuth20GrantTypes.UMA_TICKET.getType());
        authzRequest.setTicket(permissionTicket);
        var body = authzRequest.toJson();

        val ticket = ticketRegistry.getTicket(permissionTicket, UmaPermissionTicket.class);
        ticket.getResourceSet().setPolicies(new HashSet<>());
        ticketRegistry.updateTicket(ticket);

        var response = umaAuthorizationRequestEndpointController.handleAuthorizationRequest(body,
            results.getLeft(), results.getMiddle());
        assertEquals(HttpStatus.BAD_REQUEST, response.getStatusCode());
    }
This is {@link UmaAuthorizationRequestEndpointControllerTests}.

@author Misagh Moayyed
@since 6.0.0
support/cas-server-support-oauth-uma/src/test/java/org/apereo/cas/uma/web/controllers/authz/UmaAuthorizationRequestEndpointControllerTests.java