@@ -0,0 +1,1870 @@
+package com.alibaba.json.bvt.issue_3300;%0A%0Aimport com.alibaba.fastjson.serializer.*;%0Aimport junit.framework.TestCase;%0A%0Apublic class Issue3443 extends TestCase %7B%0A    public void testCustomJsonSerializerAndAfterFilter() throws Exception %7B%0A        SerializeWriter serializeWriter = new SerializeWriter();%0A        try %7B%0A            JSONSerializer jsonSerializer = new JSONSerializer(serializeWriter, new SerializeConfig());%0A%0A            Parameter parameter = new Parameter();%0A            parameter.setParameterDesc(new ParameterDesc(%22vipExpireDate%22, %22VIP expire date.%22));%0A%0A            jsonSerializer.config(SerializerFeature.DisableCircularReferenceDetect, true);%0A            jsonSerializer.getAfterFilters().add(new CustomFilter());%0A            jsonSerializer.write(parameter);%0A            assertEquals(%22%7B%5C%22parameterDesc%5C%22:%7B%5C%22ParameterDesc%5C%22:%5C%22VIP expire date.%5C%22%7D%7D%22, serializeWriter.toString());%0A        %7D finally %7B%0A            serializeWriter.close();%0A        %7D%0A    %7D%0A%0A    static class Parameter %7B%0A        private ParameterDesc parameterDesc;%0A%0A        public ParameterDesc getParameterDesc() %7B%0A            return parameterDesc;%0A        %7D%0A%0A        public void setParameterDesc(ParameterDesc parameterType) %7B%0A            this.parameterDesc = parameterType;%0A        %7D%0A    %7D%0A%0A    static class ParameterDesc %7B%0A        private String parameterName;%0A        private String parameterUsage;%0A        // do some work...%0A%0A        public ParameterDesc(String parameterName, String parameterUsage) %7B%0A            this.parameterName = parameterName;%0A            this.parameterUsage = parameterUsage;%0A        %7D%0A%0A%0A    %7D%0A%0A    static class CustomFilter extends AfterFilter %7B%0A%0A        @Override%0A        public void writeAfter(Object object) %7B%0A            if (object instanceof ParameterDesc) %7B%0A                writeKeyValue(%22ParameterDesc%22, %22VIP expire date.%22);%0A            %7D%0A        %7D%0A    %7D%0A%7D%0A

add test file