@BeforeAll
    public static void initialize() {
        val environment = new MockEnvironment();
        environment.setProperty(CasAmazonSecretsManagerCloudConfigBootstrapAutoConfiguration.CAS_CONFIGURATION_PREFIX + '.' + "endpoint", ENDPOINT);
        environment.setProperty(CasAmazonSecretsManagerCloudConfigBootstrapAutoConfiguration.CAS_CONFIGURATION_PREFIX + '.' + "region", Region.US_EAST_1.id());
        environment.setProperty(CasAmazonSecretsManagerCloudConfigBootstrapAutoConfiguration.CAS_CONFIGURATION_PREFIX + '.' + "credential-access-key", CREDENTIAL_ACCESS_KEY);
        environment.setProperty(CasAmazonSecretsManagerCloudConfigBootstrapAutoConfiguration.CAS_CONFIGURATION_PREFIX + '.' + "credential-secret-key", CREDENTIAL_SECRET_KEY);

        val builder = new AmazonEnvironmentAwareClientBuilder(CasAmazonSecretsManagerCloudConfigBootstrapAutoConfiguration.CAS_CONFIGURATION_PREFIX, environment);
        val client = builder.build(SecretsManagerClient.builder(), SecretsManagerClient.class);

        try {
            client.deleteSecret(DeleteSecretRequest.builder()
                .secretId("cas.authn.accept.users")
                .forceDeleteWithoutRecovery(true).build());
        } catch (final Exception e) {
            LOGGER.error(e.getMessage());
        }
        client.createSecret(CreateSecretRequest.builder().name("cas.authn.accept.users").secretString(STATIC_AUTHN_USERS).build());
        client.putSecretValue(PutSecretValueRequest.builder().secretId("cas.authn.accept.users").secretString(STATIC_AUTHN_USERS).build());
    }
This is {@link CasAmazonSecretsManagerCloudConfigBootstrapAutoConfigurationTests}.

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