Testing the rest service