@Test
    void verifyEqualsWithValidObject() {
        val list1 = new ArrayList<Authentication>();
        val list2 = new ArrayList<Authentication>();

        val auth = CoreAuthenticationTestUtils.getAuthentication();
        list1.add(auth);
        list2.add(auth);

        val registeredService = RegisteredServiceTestUtils.getRegisteredService();
        val assertion1 = new ImmutableAssertion(auth,
            auth, list1, true, false,
            RegisteredServiceTestUtils.getService(), registeredService, Map.of());
        val assertion2 = new ImmutableAssertion(auth,
            auth, list2, true, false,
            RegisteredServiceTestUtils.getService(), registeredService, Map.of());
        assertEquals(assertion2, assertion1);
    }
Unit test for {@link ImmutableAssertion} class.

@author Scott Battaglia
@since 3.0.0
core/cas-server-core-validation/src/test/java/org/apereo/cas/validation/ImmutableAssertionTests.java