PskEcDheServerKeyExchangeMessage extends ECDHEServerKeyExchangeMessage { @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("PskEcDheServerKeyExchangeMessage:"); sb.append("\n Curve Type: "); if (this.curveType != null && this.curveType.getValue() != null) { sb.append(EllipticCurveType.getCurveType(this.curveType.getValue())); } else { sb.append("null"); } sb.append("\n Named Group: "); if (namedGroup != null && namedGroup.getValue() != null) { sb.append(NamedGroup.getNamedGroup(this.namedGroup.getValue())); } else { sb.append("null"); } sb.append("\n Public Key: "); if (getPublicKey() != null) { sb.append(ArrayConverter.bytesToHexString(getPublicKey().getValue())); } else { sb.append("null"); } return sb.toString(); } PskEcDheServerKeyExchangeMessage();  PskEcDheServerKeyExchangeMessage(Config tlsConfig); ModifiableByteArray getIdentityHint(); void setIdentityHint(ModifiableByteArray identityHint); void setIdentityHint(byte[] identity); ModifiableInteger getIdentityHintLength(); void setIdentityHintLength(ModifiableInteger identityHintLength); void setIdentityHintLength(int identityHintLength); @Override String toString(); @Override ProtocolMessageHandler getHandler(TlsContext context); @Override String toCompactString();  }
@Test public void testToString() { StringBuilder sb = new StringBuilder(); sb.append("PskEcDheServerKeyExchangeMessage:"); sb.append("\n Curve Type: ").append("null"); sb.append("\n Named Group: ").append("null"); sb.append("\n Public Key: ").append("null"); assertEquals(message.toString(), sb.toString()); }