@Override
            protected Principal getPrincipalFromAuthentication(final Collection<Authentication> authentications) {
                return authentications.stream().reduce((first, second) -> second).orElseThrow().getPrincipal();
            }
This is {@link ChainingPrincipalElectionStrategyTests}.

@author Misagh Moayyed
@since 6.2.0
core/cas-server-core-authentication/src/test/java/org/apereo/cas/authentication/principal/ChainingPrincipalElectionStrategyTests.java