RSAClientKeyExchangeHandler extends ClientKeyExchangeHandler<RSAClientKeyExchangeMessage> { @Override public RSAClientKeyExchangeSerializer getSerializer(RSAClientKeyExchangeMessage message) { return new RSAClientKeyExchangeSerializer(message, tlsContext.getChooser().getSelectedProtocolVersion()); } RSAClientKeyExchangeHandler(TlsContext tlsContext); @Override RSAClientKeyExchangeParser getParser(byte[] message, int pointer); @Override RSAClientKeyExchangePreparator getPreparator(RSAClientKeyExchangeMessage message); @Override RSAClientKeyExchangeSerializer getSerializer(RSAClientKeyExchangeMessage message); @Override void adjustTLSContext(RSAClientKeyExchangeMessage message);  }
@Test public void testGetSerializer() { assertTrue(handler.getSerializer(new RSAClientKeyExchangeMessage()) instanceof RSAClientKeyExchangeSerializer); }