public static WsFederationCredential getCredential(final Map<String, List<Object>> attributes) {
        val standardCred = new WsFederationCredential();
        standardCred.setNotBefore(ZonedDateTime.now(ZoneOffset.UTC));
        standardCred.setNotOnOrAfter(ZonedDateTime.now(ZoneOffset.UTC).plusHours(1));
        standardCred.setIssuedOn(ZonedDateTime.now(ZoneOffset.UTC));
        standardCred.setIssuer(ISSUER);
        standardCred.setAudience(AUDIENCE);
        standardCred.setRetrievedOn(ZonedDateTime.now(ZoneOffset.UTC));
        standardCred.setId("_6257b2bf-7361-4081-ae1f-ec58d4310f61");
        standardCred.setRetrievedOn(ZonedDateTime.now(ZoneOffset.UTC).plusSeconds(1));
        standardCred.setAttributes(attributes);
        return standardCred;
    }
Abstract class, provides resources to run wsfed tests.

@author Misagh Moayyed
@since 4.2
support/cas-server-support-wsfederation/src/test/java/org/apereo/cas/support/wsfederation/AbstractWsFederationTests.java