To actually run as a unit test, I have found it helpful to develop data web scripts and their unit tests with the Alfresco SDK as embedded alfresco. Here is a link to an article with a step by step example.
Mrogers 18:04, 8 January 2009 (UTC) Using the mock test server. How do I specify content for a post or put method? I presume the server must be able to do this. Would be good to show how.