@Test
    public void test_setCallback_given_array_with_index_eq_0() {
        //init
        int[] data = new int[]{1, 2, 3, 4, 5};
        JSONPathSegmentIndex segment = JSONPathSegmentIndex.ZERO;
        JSONPath.Context context = new JSONPath.Context(JSONPath.of("$", Integer.TYPE), null, segment, null, 0);
        context.root = data;

        //call
        segment.setCallback(context, (obj, v) -> {
            return ((int[]) obj)[0] + (int) v;
        });
        //test
        assertEquals(data[0], 2);

        //call
        segment.setCallback(context, (obj, v) -> {
            return ((int[]) obj)[4] + (int) v;
        });
        //test
        assertEquals(data[0], 7);

        //clear
        context = null;
        data = null;
    }
description: setCallback method test
fix: bug when index less than 0
core/src/test/java/com/alibaba/fastjson2/JSONPathSegmentIndexTest1.java