RSAClientKeyExchangeHandler extends ClientKeyExchangeHandler<RSAClientKeyExchangeMessage> { @Override public RSAClientKeyExchangePreparator getPreparator(RSAClientKeyExchangeMessage message) { return new RSAClientKeyExchangePreparator(tlsContext.getChooser(), message); } 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 testGetPreparator() { assertTrue(handler.getPreparator(new RSAClientKeyExchangeMessage()) instanceof RSAClientKeyExchangePreparator); }