private static Assertion getAssertion(final Authentication primary) {
        val service = CoreAuthenticationTestUtils.getWebApplicationService();
        return DefaultAssertionBuilder.builder()
            .primaryAuthentication(primary)
            .authentications(List.of(primary))
            .service(service)
            .newLogin(true)
            .registeredService(CoreAuthenticationTestUtils.getRegisteredService(service.getId()))
            .build()
            .assemble();
    }
Unit test for {@link Saml10SuccessResponseView} class.

@author Scott Battaglia
@author Marvin S. Addison
@since 3.1
support/cas-server-support-saml/src/test/java/org/apereo/cas/support/saml/web/view/Saml10SuccessResponseViewTests.java