HelloRequestHandler extends HandshakeMessageHandler<HelloRequestMessage> { @Override public HelloRequestPreparator getPreparator(HelloRequestMessage message) { return new HelloRequestPreparator(tlsContext.getChooser(), message); } HelloRequestHandler(TlsContext tlsContext); @Override HelloRequestParser getParser(byte[] message, int pointer); @Override HelloRequestPreparator getPreparator(HelloRequestMessage message); @Override HelloRequestSerializer getSerializer(HelloRequestMessage message); @Override void adjustTLSContext(HelloRequestMessage message);  }
@Test public void testGetPreparator() { assertTrue(handler.getPreparator(new HelloRequestMessage()) instanceof HelloRequestPreparator); }