public static boolean sizeIsEmpty(Object object) {
        if (object instanceof Collection) {
            return ((Collection) object).isEmpty();
        } else if (object instanceof Map) {
            return ((Map) object).isEmpty();
        } else if (object instanceof Object[]) {
            return ((Object[]) object).length == 0;
        } else if (object instanceof Iterator) {
            return ((Iterator) object).hasNext() == false;
        } else if (object instanceof Enumeration) {
            return ((Enumeration) object).hasMoreElements() == false;
        } else if (object == null) {
            throw new IllegalArgumentException("Unsupported object type: null");
        } else {
            try {
                return Array.getLength(object) == 0;
            } catch (IllegalArgumentException ex) {
                throw new IllegalArgumentException("Unsupported object type: " + object.getClass().getName());
            }
        }
    }
@Test
    void testSizeIsEmpty() {
        // collection
        assertTrue(CollectionUtils.sizeIsEmpty(Collections.emptyList()));
        assertFalse(CollectionUtils.sizeIsEmpty(Collections.singletonList("")));
        
        // map
        Map<String, String> map = new HashMap<>();
        map.put("key1", "value1");
        map.put("key2", "value2");
        assertTrue(CollectionUtils.sizeIsEmpty(Collections.emptyMap()));
        assertFalse(CollectionUtils.sizeIsEmpty(map));
        
        // array
        assertTrue(CollectionUtils.sizeIsEmpty(new Object[] {}));
        assertFalse(CollectionUtils.sizeIsEmpty(new Object[] {"1", "2"}));
        
        // primitive array
        assertTrue(CollectionUtils.sizeIsEmpty(new int[] {}));
        assertFalse(CollectionUtils.sizeIsEmpty(new int[] {1, 2}));
        
        // iterator
        assertTrue(CollectionUtils.sizeIsEmpty(Collections.emptyIterator()));
        assertFalse(CollectionUtils.sizeIsEmpty(Arrays.asList("1", "2").iterator()));
        
        // enumeration
        assertTrue(CollectionUtils.sizeIsEmpty(asEnumeration(Collections.emptyIterator())));
        assertFalse(CollectionUtils.sizeIsEmpty(asEnumeration(Collections.singleton("").iterator())));
    }