package com.alibaba.json.bvt.serializer; import org.junit.Assert; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.serializer.SerializerFeature; import junit.framework.TestCase; public class SerializeWriterTest_BrowserSecure3 extends TestCase { public void test_0() throws Exception { String text = JSON.toJSONString("\n", SerializerFeature.BrowserSecure); Assert.assertEquals("\"\\u000A\"", text); } }