@Test
    void verifyClientInfoCreation() {
        try {
            val clientInfo = new ClientInfo("1.2.3.4", "1.2.3.4", UUID.randomUUID().toString(), "Paris")
                .setHeaders(new HashMap<>())
                .setLocale(Locale.ENGLISH)
                .setExtraInfo(new HashMap<>())
                .include("key", "value");
            ClientInfoHolder.setClientInfo(clientInfo);
            val foundInfo = ClientInfoHolder.getClientInfo();
            assertNotNull(foundInfo);
            assertNotNull(foundInfo.getClientIpAddress());
            assertNotNull(foundInfo.getServerIpAddress());
            assertNotNull(foundInfo.getExtraInfo());
            assertNotNull(foundInfo.getGeoLocation());
            assertNotNull(foundInfo.getHeaders());
            assertNotNull(foundInfo.getLocale());
            assertNotNull(foundInfo.getUserAgent());
        } finally {
            ClientInfoHolder.clear();
        }
    }
This is {@link ClientInfoTests}.

@author Misagh Moayyed
@since 7.0.0
api/cas-server-core-api-audit/src/test/java/org/apereo/inspektr/common/web/ClientInfoTests.java