@Test
    void verifyGetProfilesWithoutSavedClientId() {
        val profile = new CommonProfile();
        profile.setId(ID);
        profile.setClientName(registeredService.getClientId());
        val sessionProfiles = new HashMap<String, CommonProfile>(1);
        sessionProfiles.put(registeredService.getClientId(), profile);
        oauthDistributedSessionStore.set(context, Pac4jConstants.USER_PROFILES, sessionProfiles);
        val profiles = profileManager.getProfiles();
        assertNotNull(profiles);
        assertEquals(0, profiles.size());
    }
This is {@link OAuth20ClientIdAwareProfileManagerTests}.

@author Charley Wu
@since 6.3.0
support/cas-server-support-oauth/src/test/java/org/apereo/cas/support/oauth/profile/OAuth20ClientIdAwareProfileManagerTests.java