HelloVerifyRequestHandler extends HandshakeMessageHandler<HelloVerifyRequestMessage> { @Override public HelloVerifyRequestSerializer getSerializer(HelloVerifyRequestMessage message) { return new HelloVerifyRequestSerializer(message, tlsContext.getChooser().getSelectedProtocolVersion()); } HelloVerifyRequestHandler(TlsContext tlsContext); @Override HelloVerifyRequestParser getParser(byte[] message, int pointer); @Override HelloVerifyRequestPreparator getPreparator(HelloVerifyRequestMessage message); @Override HelloVerifyRequestSerializer getSerializer(HelloVerifyRequestMessage message); @Override void adjustTLSContext(HelloVerifyRequestMessage message);  }
@Test public void testGetSerializer() { assertTrue(handler.getSerializer(new HelloVerifyRequestMessage()) instanceof HelloVerifyRequestSerializer); }