HelloVerifyRequestMessage extends HandshakeMessage { @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("HelloVerifyRequestMessage:"); sb.append("\n ProtocolVersion: "); if (protocolVersion != null && protocolVersion.getValue() != null) { sb.append(ArrayConverter.bytesToHexString(protocolVersion.getValue())); } else { sb.append("null"); } sb.append("\n Cookie Length: "); if (cookieLength != null && cookieLength.getValue() != null) { sb.append(cookieLength.getValue()); } else { sb.append("null"); } sb.append("\n Cookie: "); if (cookie != null && cookie.getValue() != null) { sb.append(ArrayConverter.bytesToHexString(cookie.getValue())); } else { sb.append("null"); } return sb.toString(); } HelloVerifyRequestMessage();  HelloVerifyRequestMessage(Config tlsConfig); ModifiableByteArray getProtocolVersion(); ModifiableByteArray getCookie(); ModifiableByte getCookieLength(); void setProtocolVersion(byte[] protocolVersion); void setProtocolVersion(ModifiableByteArray protocolVersion); void setCookie(byte[] cookie); void setCookie(ModifiableByteArray cookie); void setCookieLength(byte cookieLength); void setCookieLength(ModifiableByte cookieLength); @Override ProtocolMessageHandler getHandler(TlsContext context); @Override String toString();  }
@Test public void testToString() { StringBuilder sb = new StringBuilder(); sb.append("HelloVerifyRequestMessage:"); sb.append("\n ProtocolVersion: ").append("null"); sb.append("\n Cookie Length: ").append("null"); sb.append("\n Cookie: ").append("null"); assertEquals(message.toString(), sb.toString()); }