@Test
    void verifyCookieValue() {
        val request = new MockHttpServletRequest();
        request.addHeader(HttpHeaders.USER_AGENT, "Mozilla/5.0 (Windows NT 10.0; WOW64)");

        val response = new MockHttpServletResponse();
        casGoogleAnalyticsCookieGenerator.addCookie(request, response, "value");
        ticketGrantingTicketCookieGenerator.addCookie(request, response, "value");
        assertNotNull(response.getCookie(casProperties.getGoogleAnalytics().getCookie().getName()));
        assertNotNull(response.getCookie(casProperties.getTgc().getName()));
    }
This is {@link CasGoogleAnalyticsCookieGeneratorTests}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-google-analytics/src/test/java/org/apereo/cas/web/flow/CasGoogleAnalyticsCookieGeneratorTests.java