@@ -0,0 +1,661 @@
+package com.alibaba.json.bvt.issue_2200;%0A%0Aimport com.alibaba.fastjson.JSON;%0Aimport com.alibaba.fastjson.serializer.JSONSerializer;%0Aimport com.alibaba.fastjson.serializer.ObjectSerializer;%0Aimport junit.framework.TestCase;%0A%0Apublic class Issue2289 extends TestCase %7B%0A    public void test_for_issue() throws Exception %7B%0A        B b = new B();%0A        b.id = 123;%0A%0A        JSONSerializer jsonSerializer = new JSONSerializer();%0A%0A        jsonSerializer.writeAs(b, A.class);%0A%0A        String str = jsonSerializer.toString();%0A        assertEquals(%22%7B%7D%22, str);%0A    %7D%0A%0A    public static class A %7B%0A%0A    %7D%0A%0A    public static class B extends A %7B%0A        public int id;%0A    %7D%0A%7D%0A

add testcase for issue #2289