RSAClientKeyExchangeHandler extends ClientKeyExchangeHandler<RSAClientKeyExchangeMessage> { @Override public RSAClientKeyExchangeParser getParser(byte[] message, int pointer) { return new RSAClientKeyExchangeParser(pointer, message, tlsContext.getChooser().getLastRecordVersion(), tlsContext.getConfig()); } 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 testGetParser() { assertTrue(handler.getParser(new byte[1], 0) instanceof RSAClientKeyExchangeParser); }