@Test
    void verifyAction() {
        val cloud = mock(CloudDirectoryClient.class);
        val result = ListIndexResponse.builder().build();
        when(cloud.listIndex(any(ListIndexRequest.class))).thenReturn(result);
        val r = new DefaultAmazonCloudDirectoryRepository(cloud, new AmazonCloudDirectoryProperties());
        assertTrue(r.getUser("casuser").isEmpty());
        assertNotNull(r.getListIndexRequest("casuser", ObjectReference.builder().build()));
    }
This is {@link DefaultAmazonCloudDirectoryRepositoryTests}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-cloud-directory-authentication/src/test/java/org/apereo/cas/clouddirectory/DefaultAmazonCloudDirectoryRepositoryTests.java