EcdhPskClientKeyExchange extends ECDHClientKeyExchange { @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("\t\t Encoded identity value: "); sb.append(identity).append(StringUtil.lineSeparator());; sb.append(super.toString()); sb.append(StringUtil.lineSeparator()); return sb.toString(); } EcdhPskClientKeyExchange(PskPublicInformation identity, byte[] encodedPoint, InetSocketAddress peerAddress); static HandshakeMessage fromReader(DatagramReader reader, InetSocketAddress peerAddress); @Override int getMessageLength(); @Override String toString(); PskPublicInformation getIdentity();  }
@Test public void testInstanceToString() { String toString = msg.toString(); assertNotNull(toString); }