Mock your REST APIs, with class.