ServerHelloHandler extends HandshakeMessageHandler<ServerHelloMessage> { @Override public ServerHelloSerializer getSerializer(ServerHelloMessage message) { return new ServerHelloSerializer(message, tlsContext.getChooser().getSelectedProtocolVersion()); } ServerHelloHandler(TlsContext tlsContext); @Override ServerHelloPreparator getPreparator(ServerHelloMessage message); @Override ServerHelloSerializer getSerializer(ServerHelloMessage message); @Override ServerHelloParser getParser(byte[] message, int pointer); @Override void adjustTLSContext(ServerHelloMessage message); @Override void adjustTlsContextAfterSerialize(ServerHelloMessage message);  }
@Test public void testGetSerializer() { assertTrue(handler.getSerializer(new ServerHelloMessage()) instanceof ServerHelloSerializer); }