@Test
    public void test5() {
        WildcardType wildcardType0 = new BeanUtils.WildcardTypeImpl(
                new Type[]{Object.class},
                new Type[]{Object.class}
        );
        WildcardType wildcardType1 = new BeanUtils.WildcardTypeImpl(
                new Type[]{Object.class},
                new Type[]{Object.class}
        );
        assertEquals(wildcardType0, wildcardType1);

        assertEquals("? super java.lang.Object", wildcardType0.toString());
        assertThrows(Exception.class, () -> new BeanUtils.WildcardTypeImpl(
                new Type[]{null},
                new Type[]{Object.class}
        ));
        assertEquals(
                "?",
                new BeanUtils.WildcardTypeImpl(
                        new Type[]{Object.class},
                        new Type[]{}
                ).toString()
        );
    }
note

@author kon, created on 2022/4/27T11:04.
@version 1.0.0-SNAPSHOT
core/src/test/java/com/alibaba/fastjson2/util/BeanUtilsTest.java