@Test
    void verifyCollectionAsInputMap() {
        val value = new HashMap<String, List<Object>>();
        value.put("Hello", CollectionUtils.wrapList("People", "World"));
        val result = CollectionUtils.toCollection(value, ArrayList.class);
        assertEquals(1, result.size());
        assertSame(ImmutablePair.class, result.getFirst().getClass());
    }
This is {@link CollectionUtilsTests}.

@author Misagh Moayyed
@since 5.2.0
core/cas-server-core-util/src/test/java/org/apereo/cas/util/CollectionUtilsTests.java