@BeforeAll
    public static void initialize() {
        val environment = new MockEnvironment();
        environment.setProperty(CasAmazonS3BucketsCloudConfigBootstrapAutoConfiguration.CAS_CONFIGURATION_PREFIX + '.' + "endpoint", ENDPOINT);
        environment.setProperty(CasAmazonS3BucketsCloudConfigBootstrapAutoConfiguration.CAS_CONFIGURATION_PREFIX + '.' + "region", Region.US_EAST_1.id());
        environment.setProperty(CasAmazonS3BucketsCloudConfigBootstrapAutoConfiguration.CAS_CONFIGURATION_PREFIX + '.' + "credential-access-key", CREDENTIAL_ACCESS_KEY);
        environment.setProperty(CasAmazonS3BucketsCloudConfigBootstrapAutoConfiguration.CAS_CONFIGURATION_PREFIX + '.' + "credential-secret-key", CREDENTIAL_SECRET_KEY);
        val clientBuilder = S3Client.builder().serviceConfiguration(S3Configuration.Builder::pathStyleAccessEnabled).forcePathStyle(true);
        val builder = new AmazonEnvironmentAwareClientBuilder(CasAmazonS3BucketsCloudConfigBootstrapAutoConfiguration.CAS_CONFIGURATION_PREFIX, environment);
        val s3Client = builder.build(clientBuilder, S3Client.class);
        deleteBucket(s3Client);
        s3Client.createBucket(CreateBucketRequest.builder().bucket(BUCKET_NAME).build());
        val properties = "cas.authn.accept.users=" + STATIC_AUTHN_USERS;
        val request = PutObjectRequest.builder().bucket(BUCKET_NAME).key("cas.properties").build();
        s3Client.putObject(request, RequestBody.fromString(properties));
    }
This is {@link CasAmazonS3BucketsCloudConfigBootstrapAutoConfigurationTests}.

@author Misagh Moayyed
@since 6.0.0
support/cas-server-support-configuration-cloud-aws-s3/src/test/java/org/apereo/cas/CasAmazonS3BucketsCloudConfigBootstrapAutoConfigurationTests.java