assertEquals("incorrect type", Handshake.FINISHED, message.getType());
assertTrue("incorrect CertificateVerify", Arrays.equals(message
.getData(), bytes));
HandshakeIODataStream out = new HandshakeIODataStream();
message.send(out);
byte[] encoded = out.getData(1000);
assertEquals("incorrect out data length", message.length(),
encoded.length);
HandshakeIODataStream in = new HandshakeIODataStream();