@@ -0,0 +1,830 @@
+package com.alibaba.json.bvt.serializer.filters;%0A%0Aimport org.junit.Assert;%0A%0Aimport com.alibaba.fastjson.JSON;%0Aimport com.alibaba.fastjson.serializer.ValueFilter;%0A%0Aimport junit.framework.TestCase;%0A%0Apublic class ValueFilterTest_field_int extends TestCase %7B%0A%0A    public void test_valuefilter() throws Exception %7B%0A        ValueFilter filter = new ValueFilter() %7B%0A%0A            public Object process(Object source, String name, Object value) %7B%0A                if (name.equals(%22id%22)) %7B%0A                    return %22AAA%22;%0A                %7D%0A%0A                return value;%0A            %7D%0A%0A        %7D;%0A%0A%0A        Bean a = new Bean();%0A        String text = JSON.toJSONString(a, filter);%0A%0A        Assert.assertEquals(%22%7B%5C%22id%5C%22:%5C%22AAA%5C%22%7D%22, text);%0A    %7D%0A%0A    public static class Bean %7B%0A%0A        public int    id;%0A        public String name;%0A%0A%0A    %7D%0A%7D%0A

add testase