private static DefaultAmazonCloudDirectoryRepository getMockCloudDirectoryRepository(final CloudDirectoryClient cloud,
                                                                                         final ListObjectAttributesRequest request) {
        return new DefaultAmazonCloudDirectoryRepository(cloud, new AmazonCloudDirectoryProperties()) {
            @Override
            protected ListIndexRequest getListIndexRequest(final String username, final ObjectReference reference) {
                return ListIndexRequest.builder().build();
            }

            @Override
            protected ObjectReference getObjectReference() {
                return ObjectReference.builder().build();
            }

            @Override
            protected ListObjectAttributesRequest getListObjectAttributesRequest(final String identifier) {
                return request;
            }
        };
    }
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