mock rest client