@Test
        void verifyOperation() throws Throwable {
            val accessToken = getAccessToken();
            when(accessToken.getExpiresIn()).thenReturn(60L);
            when(accessToken.isStateless()).thenReturn(Boolean.TRUE);
            val map = oauth2UserProfileDataCreator.createFrom(accessToken);
            val attributes = (Map) map.get(OAuth20UserProfileViewRenderer.MODEL_ATTRIBUTE_ATTRIBUTES);
            assertTrue(attributes.containsKey("uid"));
            assertTrue(attributes.containsKey("groupMembership"));
        }
This is {@link DefaultOAuth20UserProfileDataCreatorTests}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-oauth/src/test/java/org/apereo/cas/support/oauth/profile/DefaultOAuth20UserProfileDataCreatorTests.java