mock client handshake