@@ -0,0 +1,1249 @@
+package com.alibaba.json.bvt.serializer;%0A%0Aimport com.alibaba.fastjson.JSON;%0Aimport junit.framework.TestCase;%0A%0A/**%0A * Created by wenshao on 2016/11/2.%0A */%0Apublic class FieldOrderTest extends TestCase %7B%0A    public void test_field_order() throws Exception %7B%0A        Person p = new Person();%0A        p.setName(%22njb%22);%0A        School s = new School();%0A        s.setName(%22llyz%22);%0A        p.setSchool(s);%0A        String json = JSON.toJSONString(p);%0A        assertEquals(%22%7B%5C%22name%5C%22:%5C%22njb%5C%22,%5C%22school%5C%22:%7B%5C%22name%5C%22:%5C%22llyz%5C%22%7D%7D%22, json);%0A    %7D%0A%0A    public static class Person %7B%0A        private String name;%0A        private School school;%0A%0A        private boolean isSchool() %7B%0A            return false;%0A        %7D%0A%0A        public School getSchool() %7B%0A            return school;%0A        %7D%0A%0A        public void setSchool(School school) %7B%0A            this.school = school;%0A        %7D%0A%0A        public String getName() %7B%0A            return name;%0A        %7D%0A%0A        public void setName(String name) %7B%0A            this.name = name;%0A        %7D%0A%0A    %7D%0A%0A    public static class School %7B%0A        private String name;%0A%0A        public String getName() %7B%0A            return name;%0A        %7D%0A%0A        public void setName(String name) %7B%0A            this.name = name;%0A        %7D%0A    %7D%0A%7D%0A

add testcase