@@ -0,0 +1,1249 @@
+package com.alibaba.json.bvt.issue_1400;%0A%0Aimport com.alibaba.fastjson.JSON;%0Aimport com.alibaba.fastjson.serializer.SerializerFeature;%0Aimport junit.framework.TestCase;%0A%0Aimport java.time.LocalDateTime;%0Aimport java.time.format.DateTimeFormatter;%0A%0Apublic class Issue1493 extends TestCase %7B%0A    public void test_for_issue() throws Exception %7B%0A        TestBean test = new TestBean();%0A%0A        LocalDateTime time1 = LocalDateTime.now();%0A        LocalDateTime time2 = LocalDateTime.parse(%222017-09-22 15:08:56%22, DateTimeFormatter.ofPattern(%22yyyy-MM-dd HH:mm:ss%22));%0A        test.setTime1(time1);%0A        test.setTime2(time2);%0A%0A        String json = JSON.toJSONStringWithDateFormat(test, %22yyyy-MM-dd HH:mm:ss%22, SerializerFeature.WriteDateUseDateFormat);%0A        System.out.println(json);%0A    %7D%0A%0A    public static class TestBean %7B%0A        private LocalDateTime time1;%0A        private LocalDateTime time2;%0A%0A        public LocalDateTime getTime1() %7B%0A            return time1;%0A        %7D%0A%0A        public void setTime1(LocalDateTime time1) %7B%0A            this.time1 = time1;%0A        %7D%0A%0A        public LocalDateTime getTime2() %7B%0A            return time2;%0A        %7D%0A%0A        public void setTime2(LocalDateTime time2) %7B%0A            this.time2 = time2;%0A        %7D%0A    %7D%0A%7D%0A

add testcase for issue #1493