SupplementalDataMessage extends HandshakeMessage { @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("SupplementalDataMessage:"); sb.append("\n Supplemental Data Length: "); if (supplementalDataLength != null && supplementalDataLength.getValue() != null) { sb.append(supplementalDataLength.getValue()); } else { sb.append("null"); } sb.append("\n SupplementalDataEntries:\n"); if (!entries.isEmpty()) { for (SupplementalDataEntry entry : entries) { sb.append("\n Supplemental Data Type: ").append(entry.getSupplementalDataEntryType().getValue()); sb.append("\n Supplemental Data Length: ").append(entry.getSupplementalDataEntryLength().getValue()); sb.append("\n Supplemental Data : ").append( ArrayConverter.bytesToHexString(entry.getSupplementalDataEntry().getValue())); } } else { sb.append("null"); } return sb.toString(); } SupplementalDataMessage(Config config, LinkedList<SupplementalDataEntry> entries);  SupplementalDataMessage(Config config);  SupplementalDataMessage(); List<SupplementalDataEntry> getEntries(); void setEntries(List<SupplementalDataEntry> entries); ModifiableInteger getSupplementalDataLength(); void setSupplementalDataLength(ModifiableInteger supplementalDataLength); void setSupplementalDataLength(int supplementalDataLength); ModifiableByteArray getSupplementalDataBytes(); void setSupplementalDataBytes(ModifiableByteArray supplementalDataBytes); void setSupplementalDataBytes(byte[] supplementalDataBytes); @Override SupplementalDataHandler getHandler(TlsContext context); @Override String toString();  }
@Test public void testToString() { StringBuilder sb = new StringBuilder(); sb.append("SupplementalDataMessage:"); sb.append("\n Supplemental Data Length: ").append("null"); sb.append("\n SupplementalDataEntries:\n").append("null"); assertEquals(message.toString(), sb.toString()); }