# File lib/taps/data_stream.rb, line 222
  def verify_remote_stream(resource, headers)
    json_raw = resource.post({:state => OkJson.encode(self)}, headers).to_s
    json = self.class.parse_json(json_raw)

    self.class.new(db, json[:state])
  end