PskServerKeyExchangeMessage extends ServerKeyExchangeMessage { @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("PskServerKeyExchangeMessage:"); sb.append("\n IdentityHintLength: "); if (identityHintLength != null && identityHintLength.getValue() != null) { sb.append(identityHintLength.getValue()); } else { sb.append("null"); } sb.append("\n IdentityHint: "); if (identityHint != null && identityHint.getValue() != null) { sb.append(ArrayConverter.bytesToHexString(identityHint.getValue())); } else { sb.append("null"); } return sb.toString(); } PskServerKeyExchangeMessage();  PskServerKeyExchangeMessage(Config tlsConfig); ModifiableByteArray getIdentityHint(); void setIdentityHint(ModifiableByteArray identityHint); void setIdentityHint(byte[] identity); ModifiableInteger getIdentityHintLength(); void setIdentityHintLength(ModifiableInteger identityHintLength); void setIdentityHintLength(int identityHintLength); @Override PSKPremasterComputations getComputations(); @Override String toString(); @Override ProtocolMessageHandler getHandler(TlsContext context); @Override String toCompactString(); @Override void prepareComputations(); @Override List<ModifiableVariableHolder> getAllModifiableVariableHolders();  }
@Test public void testToString() { StringBuilder sb = new StringBuilder(); sb.append("PskServerKeyExchangeMessage:"); sb.append("\n IdentityHintLength: ").append("null"); sb.append("\n IdentityHint: ").append("null"); Assert.assertEquals(message.toString(), sb.toString()); }