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