@Bean
        public Storage storage(final GcpProjectIdProvider gcpProjectIdProvider,
                               final CredentialsProvider googleCredentialsProvider,
                               final GcpStorageProperties properties) throws IOException {
            val storageOptionsBuilder = StorageOptions.newBuilder()
                .setHeaderProvider(new UserAgentHeaderProvider(GcpStorageAutoConfiguration.class))
                .setProjectId(gcpProjectIdProvider.getProjectId())
                .setCredentials(googleCredentialsProvider.getCredentials());
            storageOptionsBuilder.setHost(properties.getHost());
            return storageOptionsBuilder.build().getService();
        }
This is {@link GoogleCloudStorageServiceRegistryTests}.

@author Misagh Moayyed
@since 7.0.0
support/cas-server-support-gcp-storage-service-registry/src/test/java/org/apereo/cas/services/GoogleCloudStorageServiceRegistryTests.java