HttpsRequestHandler extends ProtocolMessageHandler<HttpsRequestMessage> { @Override public HttpsRequestSerializer getSerializer(HttpsRequestMessage message) { return new HttpsRequestSerializer(message, tlsContext.getChooser().getSelectedProtocolVersion()); } HttpsRequestHandler(TlsContext tlsContext); @Override HttpsRequestParser getParser(byte[] message, int pointer); @Override HttpsRequestPreparator getPreparator(HttpsRequestMessage message); @Override HttpsRequestSerializer getSerializer(HttpsRequestMessage message); @Override void adjustTLSContext(HttpsRequestMessage message);  }
@Test public void testGetSerializer() { assertTrue(handler.getSerializer(new HttpsRequestMessage()) instanceof HttpsRequestSerializer); }