HelloRequestHandler extends HandshakeMessageHandler<HelloRequestMessage> { @Override public HelloRequestSerializer getSerializer(HelloRequestMessage message) { return new HelloRequestSerializer(message, tlsContext.getChooser().getSelectedProtocolVersion()); } 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 testGetSerializer() { assertTrue(handler.getSerializer(new HelloRequestMessage()) instanceof HelloRequestSerializer); }