@Test
    void verifyNoAttachment() {
        val cloud = mock(CloudDirectoryClient.class);
        val result = ListIndexResponse.builder().indexAttachments(List.of()).build();
        when(cloud.listIndex(any(ListIndexRequest.class))).thenReturn(result);
        val r = getMockCloudDirectoryRepository(cloud, null);
        assertNull(r.getUser("casuser"));
    }
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