Handshake runtimeException test