@Test
    void testDirectlyGetFromAnnotationType() {
        Class<DirectlyJSONCreatorPojo> clazz = DirectlyJSONCreatorPojo.class;
        Constructor<?>[] constructors = clazz.getConstructors();

        List<Annotation> annotations = new ArrayList<>();
        for (Constructor<?> constructor : constructors) {
            annotations.addAll(Arrays.asList(constructor.getAnnotations()));
        }

        assertExistJSONCreator(annotations);
    }
Test for {@link JSONCreator}

@author lzhpo
core/src/test/java/com/alibaba/fastjson2/annotation/JSONCreatorCombinationTest.java