@Test
public void test() {

    TestJsonBean bean = new TestJsonBean();
    bean.setName("xxxx");
    bean.setAge(123);
    String str = JSON.toJSONString(bean);
    Assert.assertTrue(str.contains("\"Name\":\"xxxx\""));
    str = JSON.toJSONString(bean, true);
    Assert.assertTrue(str.contains(JSON.CLASS_KEY));
}