@Test
    void verifyTokenFromParameter() {
        val credential = new TokenCredential("tokenid", RegisteredServiceTestUtils.getService());
        val metadata = new BasicCredentialMetadata(credential);
        assertNotNull(metadata.getCredentialClass());
    }
This is {@link TokenCredentialTests}.

@author Misagh Moayyed
@since 6.1.0
support/cas-server-support-token-webflow/src/test/java/org/apereo/cas/web/TokenCredentialTests.java