ServerHelloDoneHandler extends HandshakeMessageHandler<ServerHelloDoneMessage> { @Override public ServerHelloDoneSerializer getSerializer(ServerHelloDoneMessage message) { return new ServerHelloDoneSerializer(message, tlsContext.getChooser().getSelectedProtocolVersion()); } ServerHelloDoneHandler(TlsContext tlsContext); @Override ServerHelloDoneParser getParser(byte[] message, int pointer); @Override ServerHelloDonePreparator getPreparator(ServerHelloDoneMessage message); @Override ServerHelloDoneSerializer getSerializer(ServerHelloDoneMessage message); @Override void adjustTLSContext(ServerHelloDoneMessage message);  }
@Test public void testGetSerializer() { assertTrue(handler.getSerializer(new ServerHelloDoneMessage()) instanceof ServerHelloDoneSerializer); }