@Bean
            public SecretManagerTemplate googleCloudSecretsManagerTemplate() {
                val secretResponse = AccessSecretVersionResponse
                    .newBuilder()
                    .setName("cas.authn.accept.users")
                    .setPayload(SecretPayload.newBuilder()
                        .setData(ByteString.copyFrom("casuser::Mellon".getBytes(StandardCharsets.UTF_8)))
                        .build())
                    .build();
                val serviceClient = mock(SecretManagerServiceClient.class);
                when(serviceClient.accessSecretVersion(any(SecretVersionName.class))).thenReturn(secretResponse);
                return new SecretManagerTemplate(serviceClient, new DefaultGcpProjectIdProvider());
            }
This is {@link GoogleCloudSecretsManagerCloudConfigBootstrapConfigurationTests}.

@author Misagh Moayyed
@since 7.0.0
support/cas-server-support-configuration-cloud-gcp-secretsmanager/src/test/java/org/apereo/cas/GoogleCloudSecretsManagerCloudConfigBootstrapConfigurationTests.java