FinishedMessage extends HandshakeMessage { @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("FinishedMessage:"); sb.append("\n Verify Data: "); if (verifyData != null && verifyData.getOriginalValue() != null) { sb.append(ArrayConverter.bytesToHexString(verifyData.getValue())); } else { sb.append("null"); } return sb.toString(); } FinishedMessage(Config tlsConfig);  FinishedMessage(); ModifiableByteArray getVerifyData(); void setVerifyData(ModifiableByteArray verifyData); void setVerifyData(byte[] value); @Override String toString(); @Override ProtocolMessageHandler getHandler(TlsContext context);  }
@Test public void testToString() { StringBuilder sb = new StringBuilder(); sb.append("FinishedMessage:"); sb.append("\n Verify Data: ").append("null"); assertEquals(message.toString(), sb.toString()); }