@Test
    void verifyIsValidOldToken() {
        val standardCred = getCredential();
        standardCred.setNotBefore(ZonedDateTime.now(ZoneOffset.UTC).minusDays(1));
        standardCred.setNotOnOrAfter(ZonedDateTime.now(ZoneOffset.UTC).plusHours(1).minusDays(1));
        standardCred.setIssuedOn(ZonedDateTime.now(ZoneOffset.UTC).minusDays(1));
        assertFalse(standardCred.isValid(AUDIENCE, ISSUER, 2000), "testIsValidOldToken() - False");
        assertNotNull(standardCred.getAudience());
        assertNotNull(standardCred.getNotBefore());
        assertNotNull(standardCred.getNotOnOrAfter());
        assertNotNull(standardCred.getIssuedOn());
        assertNotNull(standardCred.getRetrievedOn());
        assertNotNull(standardCred.getId());
        assertNotNull(standardCred.getIssuer());
        assertNull(standardCred.getAuthenticationMethod());
    }
Test cases for {@link WsFederationCredential}.

@author John Gasper
@since 4.2.0
support/cas-server-support-wsfederation/src/test/java/org/apereo/cas/support/wsfederation/authentication/principal/WsFederationCredentialTests.java