HelloRetryRequestHandler extends HandshakeMessageHandler<HelloRetryRequestMessage> { @Override public HelloRetryRequestSerializer getSerializer(HelloRetryRequestMessage message) { return new HelloRetryRequestSerializer(message, tlsContext.getChooser().getSelectedProtocolVersion()); } HelloRetryRequestHandler(TlsContext tlsContext); @Override HelloRetryRequestParser getParser(byte[] message, int pointer); @Override HelloRetryRequestPreparator getPreparator(HelloRetryRequestMessage message); @Override HelloRetryRequestSerializer getSerializer(HelloRetryRequestMessage message); @Override void adjustTLSContext(HelloRetryRequestMessage message);  }
@Test public void testGetSerializer() { assertTrue(handler.getSerializer(new HelloRetryRequestMessage()) instanceof HelloRetryRequestSerializer); }