UnknownHandshakeMessage extends HandshakeMessage { @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("UnknownHandshakeMessage:"); sb.append("\n Data: "); if (data != null && data.getValue() != null) { sb.append(ArrayConverter.bytesToHexString(data.getValue())); } else { sb.append("null"); } return sb.toString(); } UnknownHandshakeMessage();  UnknownHandshakeMessage(Config config); byte[] getDataConfig(); void setDataConfig(byte[] dataConfig); ModifiableByteArray getData(); void setData(ModifiableByteArray data); void setData(byte[] data); @Override ProtocolMessageHandler getHandler(TlsContext context); @Override String toString();  }
@Test public void testToString() { StringBuilder sb = new StringBuilder(); sb.append("UnknownHandshakeMessage:"); sb.append("\n Data: ").append("null"); assertEquals(message.toString(), sb.toString()); }