public JSONObject set(String key, Object value) throws JSONException {
		return set(key, value, null, false);
	}
@Test
	public void toBeanTest() {
		final JSONObject subJson = JSONUtil.createObj().set("value1", "strValue1").set("value2", "234");
		final JSONObject json = JSONUtil.createObj().set("strValue", "strTest").set("intValue", 123)
			// 测试空字符串转对象
			.set("doubleValue", "")
			.set("beanValue", subJson)
			.set("list", JSONUtil.createArray().set("a").set("b")).set("testEnum", "TYPE_A");

		final TestBean bean = json.toBean(TestBean.class);
		assertEquals("a", bean.getList().get(0));
		assertEquals("b", bean.getList().get(1));

		assertEquals("strValue1", bean.getBeanValue().getValue1());
		// BigDecimal转换检查
		assertEquals(new BigDecimal("234"), bean.getBeanValue().getValue2());
		// 枚举转换检查
		assertEquals(TestEnum.TYPE_A, bean.getTestEnum());
	}