I'm interested in adding a unit test for certain aspects of the behavior of my REST service, one that can execute outside the confines of a Web server. It would be sufficient if there were merely a way for me to call the Restlet classes directly, then examine the response.
What's not obvious to me is how one would go about this. I'd need to create Request and Response objects, obviously, but what's the best way to do that, and what would I need to put in there? Is there a Factory somewhere I should be using for this? Or is this the wrong approach; is there some other way to accomplish this (short of decoupling the code underlying the Restlet and testing that by itself)? Thanks, -- Bryan

