@Bean
        public Client oktaPersonDirectoryClient() {
            val profile = mock(UserProfile.class);
            when(profile.getEmail()).thenReturn("cas@example.org");
            when(profile.getEmployeeNumber()).thenReturn("23947236572");

            val user = mock(User.class);
            when(user.getId()).thenReturn("casuser");
            when(user.getStatus()).thenReturn(UserStatus.ACTIVE);
            when(user.getProfile()).thenReturn(profile);
            when(user.getLastUpdated()).thenReturn(new Date());
            when(user.getLastLogin()).thenReturn(new Date());
            val client = mock(Client.class);
            when(client.getUser(anyString())).thenReturn(user);
            return client;
        }
This is {@link OktaPersonAttributeDaoTests}.

@author Misagh Moayyed
@since 6.4.0
support/cas-server-support-okta-authentication/src/test/java/org/apereo/cas/okta/OktaPersonAttributeDaoTests.java