@@ -0,0 +1,1376 @@
+package com.alibaba.json.bvt.issue_1500;%0A%0Aimport com.alibaba.fastjson.JSON;%0Aimport com.alibaba.fastjson.annotation.JSONField;%0Aimport com.alibaba.fastjson.annotation.JSONType;%0Aimport com.alibaba.fastjson.serializer.JSONSerializer;%0Aimport com.alibaba.fastjson.serializer.NameFilter;%0Aimport com.alibaba.fastjson.serializer.ObjectSerializer;%0Aimport junit.framework.TestCase;%0A%0Aimport java.io.IOException;%0Aimport java.lang.reflect.Type;%0A%0Apublic class Issue1524 extends TestCase %7B%0A    public void test_for_issue() throws Exception %7B%0A        Model model = new Model();%0A        model.oldValue = new Value();%0A%0A        String json = JSON.toJSONString(model, new NameFilter() %7B%0A            public String process(Object object, String name, Object value) %7B%0A                if (%22oldValue%22.equals(name)) %7B%0A                    return %22old_value%22;%0A                %7D%0A                return name;%0A            %7D%0A        %7D);%0A        System.out.println(json);%0A    %7D%0A%0A    public static class Model %7B%0A        @JSONField(serializeUsing = ValueSerializer.class)%0A        public Value oldValue;%0A    %7D%0A%0A    public static class Value %7B%0A%0A    %7D%0A%0A    public static class ValueSerializer implements ObjectSerializer %7B%0A%0A        public void write(JSONSerializer serializer, Object object, Object fieldName, Type fieldType, int features) throws IOException %7B%0A            serializer.write(%22xx%22);%0A        %7D%0A    %7D%0A%7D%0A

add testcase for issue #1524