@Test
    void verifyToCol() {
        assertThrows(IllegalArgumentException.class, () ->
            CollectionUtils.toCollection("item", List.class));
        assertNotNull(CollectionUtils.toCollection(List.of("one").iterator()));
        assertNotNull(CollectionUtils.toCollection(Collections.enumeration(List.of("one"))));
    }
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