REST service unit test