@Test
    void verifyAccount() throws Throwable {
        val cookieValue = remoteCookieCipherExecutor.encode("casuser");
        val credential = new RemoteAuthenticationCredential(null, cookieValue.toString());
        assertTrue(remoteCookieAuthenticationHandler.supports(credential));
        assertTrue(remoteCookieAuthenticationHandler.supports(credential.getClass()));
        val result = remoteCookieAuthenticationHandler.authenticate(credential, mock(Service.class));
        assertNotNull(result);
        assertEquals("casuser", result.getPrincipal().getId());
        assertNotNull(remoteCookieCipherExecutor.getSigningKeySetting());
        assertNotNull(remoteCookieCipherExecutor.getEncryptionKeySetting());
    }
This is {@link RemoteCookieAuthenticationHandlerTests}.

@author Misagh Moayyed
@since 7.0.0
support/cas-server-support-generic-remote-webflow/src/test/java/org/apereo/cas/adaptors/generic/remote/RemoteCookieAuthenticationHandlerTests.java