import com.alibaba.fastjson.parser.Feature;
public class FeatureTest extends TestCase {
public void test_default() throws Exception {
DefaultJSONParser parser = new DefaultJSONParser("");
Assert.assertEquals(false, parser.isEnabled(Feature.AllowComment));
Assert.assertEquals(true, parser.isEnabled(Feature.AllowSingleQuotes));
Assert.assertEquals(true, parser.isEnabled(Feature.AllowUnQuotedFieldNames));
Assert.assertEquals(true, parser.isEnabled(Feature.AutoCloseSource));
Assert.assertEquals(true, parser.isEnabled(Feature.InternFieldNames));
}