NewSessionTicketMessage extends HandshakeMessage { @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("NewSessionTicketMessage:"); sb.append("\n TicketLifeTimeHint: "); if (ticketLifetimeHint != null && ticketLifetimeHint.getValue() != null) { sb.append(ticketLifetimeHint.getValue()); } else { sb.append("null"); } sb.append("\n TicketLength: "); if (ticketLength != null && ticketLength.getValue() != null) { sb.append(ticketLength.getValue()); } else { sb.append("null"); } sb.append("\n Ticket: "); if (ticket != null) { sb.append(ticket.toString()); } else { sb.append("null"); } return sb.toString(); } NewSessionTicketMessage();  NewSessionTicketMessage(boolean includeInDigest);  NewSessionTicketMessage(Config tlsConfig);  NewSessionTicketMessage(Config tlsConfig, boolean includeInDigest); ModifiableLong getTicketLifetimeHint(); void setTicketLifetimeHint(ModifiableLong ticketLifetimeHint); void setTicketLifetimeHint(long ticketLifetimeHint); SessionTicket getTicket(); void prepareTicket(); ModifiableInteger getTicketLength(); void setTicketLength(int ticketLength); void setTicketLength(ModifiableInteger ticketLength); @Override String toString(); @Override String toCompactString(); @Override List<ModifiableVariableHolder> getAllModifiableVariableHolders(); @Override ProtocolMessageHandler getHandler(TlsContext context);  }
@Test public void testToString() { StringBuilder sb = new StringBuilder(); sb.append("NewSessionTicketMessage:"); sb.append("\n TicketLifeTimeHint: ").append("null"); sb.append("\n TicketLength: ").append("null"); sb.append("\n Ticket: ").append(new SessionTicket().toString()); assertEquals(message.toString(), sb.toString()); }