@Bean
        public Logging googleCloudLoggingService() {
            val payload = Payload.StringPayload.of("This is a log statement");
            val logPage = mock(Page.class);
            val logEntry = LogEntry.of(payload)
                .toBuilder()
                .setLogName("log-name")
                .setTimestamp(Instant.now(Clock.systemUTC()))
                .setSeverity(Severity.DEBUG)
                .build();
            when(logPage.iterateAll()).thenReturn(List.of(logEntry));
            val logging = mock(Logging.class);
            when(logging.listLogEntries(any(), any(), any())).thenReturn(logPage);
            return logging;
        }
This is {@link GoogleCloudLogsEndpointTests}.

@author Misagh Moayyed
@since 7.1.0
support/cas-server-support-gcp-logging/src/test/java/org/apereo/cas/logging/GoogleCloudLogsEndpointTests.java