@Test
    void testReplacement() {
        val mapOne = new HashMap<String, List<Object>>();
        mapOne.put("aaa", CollectionUtils.wrapList("111"));
        mapOne.put("bbb", CollectionUtils.wrapList("222"));

        val mapTwo = new HashMap<String, List<Object>>();
        mapTwo.put("bbb", CollectionUtils.wrapList("bbb"));
        mapTwo.put("ccc", CollectionUtils.wrapList("333"));
        mapTwo.put("aaa", CollectionUtils.wrapList("678"));

        val result = attributeMerger.mergeAttributes(mapOne, mapTwo);
        assertEquals(mapTwo, result);
    }
This is {@link ReturnChangesAttributeMergerTests}.

@author Misagh Moayyed
@since 7.1.0
core/cas-server-core-authentication-api/src/test/java/org/apereo/cas/authentication/principal/merger/ReturnChangesAttributeMergerTests.java