HelloRetryRequestMessage extends HandshakeMessage { @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("HelloRetryRequestMessage:"); sb.append("\n Protocol Version: "); if (protocolVersion != null && protocolVersion.getValue() != null) { sb.append(ProtocolVersion.getProtocolVersion(protocolVersion.getValue())); } else { sb.append("null"); } sb.append("\n Selected Cipher Suite: "); if (selectedCipherSuite != null && selectedCipherSuite.getValue() != null) { sb.append(CipherSuite.getCipherSuite(selectedCipherSuite.getValue())).append("\n Extensions: "); } else { sb.append("null"); } sb.append("\n Extensions: "); if (getExtensions() == null) { sb.append("null"); } else { for (ExtensionMessage e : getExtensions()) { sb.append("\n ").append(e.toString()); } } return sb.toString(); } HelloRetryRequestMessage();  HelloRetryRequestMessage(Config tlsConfig); ModifiableByteArray getProtocolVersion(); void setProtocolVersion(ModifiableByteArray protocolVersion); void setProtocolVersion(byte[] array); ModifiableByteArray getSelectedCipherSuite(); void setSelectedCipherSuite(ModifiableByteArray cipherSuite); void setSelectedCipherSuite(byte[] value); @Override String toString(); @Override ProtocolMessageHandler getHandler(TlsContext context);  }
@Test public void testToString() { StringBuilder sb = new StringBuilder(); sb.append("HelloRetryRequestMessage:"); sb.append("\n Protocol Version: ").append("null"); sb.append("\n Selected Cipher Suite: ").append("null"); sb.append("\n Extensions: ").append("null"); assertEquals(message.toString(), sb.toString()); }