@Test
    void verifyOperation() throws Throwable {
        val request = new MockHttpServletRequest();
        request.setPreferredLocales(List.of(Locale.FRENCH));
        request.setRequestURI("/login");
        request.setMethod("POST");
        request.setQueryString("one=two");
        request.addHeader(GoogleCloudLoggingWebInterceptor.HEADER_B3_TRACE_ID, UUID.randomUUID().toString());
        val response = new MockHttpServletResponse();
        ThreadContext.put("protocol", "HTTP 1.1");
        ThreadContext.put(HttpHeaders.USER_AGENT, "Firefox");
        ThreadContext.put("remoteIp", "127.0.0.1");
        ThreadContext.put("method", request.getMethod());
        googleCloudLoggingInterceptor.preHandle(request, response, this);

        val context = LoggerContext.getContext(false);
        val logger = context.getLogger(GoogleCloudAppender.class.getName());
        logger.info("This is an INFO log message here");
        logger.warn("This is a WARNING log message here");
        logger.info("This is a parametrized message with a POJO [{}]",
            new Pojo(UUID.randomUUID().toString(), 1984L));
        logger.info(new Pojo("Payload is an object here", 1984L));
        logger.info(Map.of("application", "CAS", "org", "Apereo"));
        logger.info("Hello World [{}]", Map.of("application", "CAS", "org", "Apereo"));

        val appender = (GoogleCloudAppender) logger.getAppenders().get("GoogleCloudAppender");
        assertNotNull(appender);

        context.stop(5, TimeUnit.SECONDS);
    }
This is {@link GoogleCloudAppenderTests}.

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