@Test
    void verifyMissingChannel() throws Throwable {
        var results = authenticateUmaRequestWithProtectionScope();
        var body = createUmaResourceRegistrationRequest().toJson();
        var response = umaCreateResourceSetRegistrationEndpointController.registerResourceSet(body,
            results.getLeft(), results.getMiddle());
        var model = (Map) response.getBody();
        assertNotNull(model);
        val resourceId = (long) model.get("resourceId");

        body = createUmaPolicyRegistrationRequest(getCurrentProfile(results.getLeft(), results.getMiddle())).toJson();
        results = authenticateUmaRequestWithProtectionScope();
        response = umaUpdatePolicyForResourceSetEndpointController.updatePoliciesForResourceSet(resourceId, 2, body,
            results.getLeft(), results.getMiddle());
        assertEquals(HttpStatus.OK, response.getStatusCode());
    }
This is {@link UmaUpdatePolicyForResourceSetEndpointControllerTests}.

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