A test-friendly mechanism for expressing RESTful http contracts