CertificateVerifyMessage extends HandshakeMessage { @Override public String toString() { StringBuilder builder = new StringBuilder(); builder.append("CertificateVerifyMessage:"); builder.append("\n SignatureAndHashAlgorithm: "); if (signatureHashAlgorithm != null && signatureHashAlgorithm.getValue() != null) { builder.append(ArrayConverter.bytesToHexString(signatureHashAlgorithm.getValue())); } else { builder.append("null"); } builder.append("\n Signature Length: "); if (signatureLength != null && signatureLength.getValue() != null) { builder.append(signatureLength.getValue()); } else { builder.append("null"); } builder.append("\n Signature: "); if (signature != null && signature.getValue() != null) { builder.append(ArrayConverter.bytesToHexString(signature.getValue())); } else { builder.append("null"); } return builder.toString(); } CertificateVerifyMessage();  CertificateVerifyMessage(Config tlsConfig); ModifiableByteArray getSignatureHashAlgorithm(); void setSignatureHashAlgorithm(ModifiableByteArray signatureHashAlgorithm); void setSignatureHashAlgorithm(byte[] signatureHashAlgorithm); ModifiableInteger getSignatureLength(); void setSignatureLength(ModifiableInteger signatureLength); void setSignatureLength(int length); ModifiableByteArray getSignature(); void setSignature(ModifiableByteArray signature); void setSignature(byte[] signature); @Override String toString(); @Override ProtocolMessageHandler getHandler(TlsContext context);  }
@Test public void testToString() { StringBuilder sb = new StringBuilder(); sb.append("CertificateVerifyMessage:").append("\n SignatureAndHashAlgorithm: ").append("null") .append("\n Signature Length: ").append("null").append("\n Signature: ").append("null"); assertEquals(message.toString(), sb.toString()); }