@Test
    void verifyMatchedOperation() {
        val ticketId = UUID.randomUUID().toString();
        val permissionTicket = mock(UmaPermissionTicket.class);
        when(permissionTicket.getId()).thenReturn(ticketId);
        when(permissionTicket.isExpired()).thenReturn(Boolean.FALSE);
        when(permissionTicket.getClaims()).thenReturn(Map.of("c1", "v1"));
        when(permissionTicket.getScopes()).thenReturn(Set.of("s1", "s2"));

        val id = UUID.randomUUID().toString();

        val resourceSet = new ResourceSet();
        resourceSet.setClientId(id);

        val policy = new ResourceSetPolicy();
        val permission = new ResourceSetPolicyPermission();
        permission.setId(1000);
        permission.setSubject("casuser");
        permission.setClaims(new LinkedHashMap<>(Map.of("c1", "v1")));
        permission.setScopes(CollectionUtils.wrapHashSet("s1", "s2"));
        policy.setPermissions(CollectionUtils.wrapHashSet(permission));
        resourceSet.setPolicies(CollectionUtils.wrapHashSet(policy));

        when(permissionTicket.getResourceSet()).thenReturn(resourceSet);
        val result = umaResourceSetClaimPermissionExaminer.examine(permissionTicket);
        assertNotNull(result);
        assertFalse(result.getDetails().containsKey(permission.getId()));
    }
This is {@link DefaultUmaResourceSetClaimPermissionExaminerTests}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-oauth-uma/src/test/java/org/apereo/cas/uma/web/controllers/claims/DefaultUmaResourceSetClaimPermissionExaminerTests.java