mock rest api and client working - need to add ability to generate exceptions