package com.alibaba.json.bvt.parser; import junit.framework.TestCase; import org.junit.Assert; import com.alibaba.fastjson.JSON; public class JSONLexerTest_10 extends TestCase { public void test_a() throws Exception { Exception error = null; try { JSON.parseObject("{\"type\":\"AAA", VO.class); } catch (Exception ex) { error = ex; } Assert.assertNotNull(error); } public static class VO { public VO(){ } private String type; public String getType() { return type; } public void setType(String type) { this.type = type; } } }