ClientHelloHandler extends HandshakeMessageHandler<ClientHelloMessage> { @Override public ClientHelloPreparator getPreparator(ClientHelloMessage message) { return new ClientHelloPreparator(tlsContext.getChooser(), message); } 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 testGetPreparator() { assertTrue(handler.getPreparator(new ClientHelloMessage()) instanceof ClientHelloPreparator); }