class Net::SSH::Test::Channel

def remote_id

(See Net::SSH::Test::Packet#instantiate!.)
that will return the remote-id later if the remote id has not yet been set.
Returns the remote (server-assigned) id for this channel, or a Proc object
def remote_id
  @remote_id || Proc.new { @remote_id or raise "remote-id has not been set yet!" }
end