java RESTful test