@Test
    void verifyAction() throws Throwable {
        val context = MockRequestContext.create(applicationContext);
        val request = context.getHttpServletRequest();
        request.setRemoteAddr("123.456.789.000");
        request.setLocalAddr("123.456.789.000");
        context.withUserAgent();
        ClientInfoHolder.setClientInfo(ClientInfo.from(request));

        val authentication = RegisteredServiceTestUtils.getAuthentication();
        val f1 = deviceFingerprintStrategy.determineFingerprint(authentication, request, context.getHttpServletResponse());
        request.setCookies(context.getHttpServletResponse().getCookies());
        val f2 = deviceFingerprintStrategy.determineFingerprint(authentication, request, context.getHttpServletResponse());
        request.setCookies(context.getHttpServletResponse().getCookies());
        assertEquals(f1, f2);

        val f3 = deviceFingerprintStrategy.determineFingerprint(authentication, request, context.getHttpServletResponse());
        assertNotNull(context.getHttpServletResponse().getCookies());
        assertEquals(1, context.getHttpServletResponse().getCookies().length);
        request.setCookies(context.getHttpServletResponse().getCookies());

        val f4 = deviceFingerprintStrategy.determineFingerprint(authentication, request, context.getHttpServletResponse());
        assertEquals(f3, f4);
    }
This is {@link DefaultDeviceFingerprintStrategyTests}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-trusted-mfa/src/test/java/org/apereo/cas/trusted/authentication/storage/fingerprint/DefaultDeviceFingerprintStrategyTests.java