use curl to test java webservice
http://alvinalexander.com/web/using-curl-scripts-to-test-restful-web-services
http://stackoverflow.com/questions/7172784/how-to-post-json-data-with-curl-from-terminal-commandline-to-test-spring-rest
http://ju.outofmemory.cn/entry/84875
http://blogs.plexibus.com/2009/01/15/rest-esting-with-curl/
http://blog.dayanjia.com/2010/08/3-ways-to-test-restful-web-services/