public void test_url() throws Exception {
Assert.assertEquals(new URL("http://www.alibaba.com"), JSON.parseObject("'http://www.alibaba.com'", URL.class));
Assert.assertEquals(null, JSON.parseObject("null", URL.class));
DefaultExtJSONParser parser = new DefaultExtJSONParser("null", ParserConfig.getGlobalInstance(), JSON.DEFAULT_PARSER_FEATURE);
Assert.assertEquals(null, URLDeserializer.instance.deserialze(parser, null, null));
Assert.assertEquals(JSONToken.LITERAL_STRING, URLDeserializer.instance.getFastMatchToken());
}