def v2_endpoint?
      return @has_v2_endpoint unless @has_v2_endpoint.nil?

      begin
        @conn.post '/api/v2/update', '{}'
      rescue SFRest::BadRequestError
        return @has_v2_endpoint = true
      rescue SFRest::InvalidResponse => e
        return @has_v2_endpoint = false if e.message =~ /Invalid data, status 404/

        raise e
      end
    end
def v2_endpoint?
      return @has_v2_endpoint unless @has_v2_endpoint.nil?

      begin
        @conn.post '/api/v2/update', '{}'
      rescue SFRest::BadRequestError
        return @has_v2_endpoint = true
      rescue SFRest::InvalidResponse => e
        return @has_v2_endpoint = false if e.message =~ /Invalid data, status 404/

        raise e
      end
    end
Determines if the v2 endpoint exists.
 A factory with the endpoint will raise an SFRest::BadRequestError
 A factory without the endpoint will raise SFRest::InvalidResponse