@@ -0,0 +1,797 @@
+package com.alibaba.json.bvt.issue_1200;%0A%0Aimport com.alibaba.fastjson.JSON;%0Aimport com.alibaba.fastjson.JSONAware;%0Aimport com.alibaba.fastjson.serializer.SerializerFeature;%0Aimport junit.framework.TestCase;%0A%0A/**%0A * Created by wenshao on 01/06/2017.%0A */%0Apublic class Issue1222 extends TestCase %7B%0A    public void test_for_issue() throws Exception %7B%0A        Model model = new Model();%0A        model.type = Type.A;%0A        String text = JSON.toJSONString(model, SerializerFeature.WriteEnumUsingToString);%0A        assertEquals(%22%7B%5C%22type%5C%22:%5C%22TypeA%5C%22%7D%22, text);%0A    %7D%0A%0A    public static class Model %7B%0A        public Type type;%0A    %7D%0A%0A    public static enum Type implements JSONAware %7B%0A        A, B;%0A%0A        public String toJSONString() %7B%0A            return %22%5C%22Type%22 + this.name() + %22%5C%22%22;%0A        %7D%0A    %7D%0A%7D%0A

add testcase.