public static Assertion getAssertion(final boolean fromNewLogin,
                                         final String[] extraPrincipals,
                                         final RegisteredService registeredService) {
        val list = new ArrayList<Authentication>();
        list.add(CoreAuthenticationTestUtils.getAuthentication());

        Arrays.stream(extraPrincipals).map(CoreAuthenticationTestUtils::getAuthentication).forEach(list::add);
        return new ImmutableAssertion(CoreAuthenticationTestUtils.getAuthentication(),
            CoreAuthenticationTestUtils.getAuthentication(),
            list, fromNewLogin, false, RegisteredServiceTestUtils.getService(), registeredService, Map.of());
    }
This is {@link CoreValidationTestUtils}.

@author Misagh Moayyed
@since 4.2.0
core/cas-server-core-validation/src/test/java/org/apereo/cas/CoreValidationTestUtils.java