@Override
            protected String getExpirationPolicyNameFor(final AuthenticationAwareTicket ticketState) {
                if ("expired".equals(ticketState.getAuthentication().getPrincipal().getId())) {
                    return AlwaysExpiresExpirationPolicy.class.getSimpleName();
                }
                return POLICY_NAME_DEFAULT;
            }
This is {@link DelegatingExpirationPolicyTests}.

@author Misagh Moayyed
@since 6.2.0
core/cas-server-core-tickets/src/test/java/org/apereo/cas/ticket/expiration/DelegatingExpirationPolicyTests.java