assertEquals("incorrect type", Handshake.SERVER_HELLO_DONE, message
.getType());
assertEquals("incorrect ServerHelloDone", 0, message.length());
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();