@Test
    void verifyCred() {
        val credential = getCredential();
        assertNotNull(credential.getCredentialMetadata().getCredentialClass());
        assertTrue(credential.isValid());
    }
This is {@link CredentialTests}.

@author Misagh Moayyed
@since 6.3.0
core/cas-server-core-authentication-api/src/test/java/org/apereo/cas/authentication/credential/CredentialTests.java