@Test
    void verifyNoEnc() throws Throwable {
        val service = RegisteredServiceTestUtils.getService(RegisteredServiceTestUtils.CONST_TEST_URL3);
        val registeredService = servicesManager.findServiceBy(service);
        val generator = TokenAuthenticationSecurity.forRegisteredService(registeredService).toGenerator();
        val profile = new CommonProfile();
        profile.setId("casuser");
        profile.addAttributes((Map) RegisteredServiceTestUtils.getTestAttributes());
        val token = generator.generate(profile);
        val credential = new TokenCredential(token, service);
        assertNotNull(tokenAuthenticationHandler.authenticate(credential, credential.getService()));
    }
This is {@link TokenAuthenticationHandlerTests}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-token-authentication/src/test/java/org/apereo/cas/token/authentication/TokenAuthenticationHandlerTests.java