ClientHelloHandler extends HandshakeMessageHandler<ClientHelloMessage> { @Override public ClientHelloSerializer getSerializer(ClientHelloMessage message) { return new ClientHelloSerializer(message, tlsContext.getChooser().getSelectedProtocolVersion()); } ClientHelloHandler(TlsContext tlsContext); @Override ClientHelloParser getParser(byte[] message, int pointer); @Override ClientHelloPreparator getPreparator(ClientHelloMessage message); @Override ClientHelloSerializer getSerializer(ClientHelloMessage message); @Override void adjustTLSContext(ClientHelloMessage message); @Override void adjustTlsContextAfterSerialize(ClientHelloMessage message);  }
@Test public void testGetSerializer() { assertTrue(handler.getSerializer(new ClientHelloMessage()) instanceof ClientHelloSerializer); }