@Test
    void verifyNoAttributeResult() {
        val cloud = mock(CloudDirectoryClient.class);
        val attachment = IndexAttachment.builder().objectIdentifier(UUID.randomUUID().toString()).build();
        val result = ListIndexResponse.builder().indexAttachments(List.of(attachment)).build();
        when(cloud.listIndex(any(ListIndexRequest.class))).thenReturn(result);

        when(cloud.listObjectAttributes(any(ListObjectAttributesRequest.class))).thenReturn(ListObjectAttributesResponse.builder().build());
        val r = getMockCloudDirectoryRepository(cloud, ListObjectAttributesRequest.builder().build());
        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