class Net::SSH::Test::RemotePacket

def process(packet)

(Net::SSH::Test::Script) or your program are wrong.
to be sent). This will happen when either your test script
mismatch (a remote packet was received when a local packet was expected
packets; if it is attempted on a remote packet, then it is an expectation
The #process method should only be called on Net::SSH::Test::LocalPacket
def process(packet)
  raise "received packet type #{packet.read_byte} and was not expecting any packet"
end