PskRsaClientKeyExchangeHandler extends ClientKeyExchangeHandler<PskRsaClientKeyExchangeMessage> { @Override public PskRsaClientKeyExchangeParser getParser(byte[] message, int pointer) { return new PskRsaClientKeyExchangeParser(pointer, message, tlsContext.getChooser().getLastRecordVersion(), tlsContext.getConfig()); } PskRsaClientKeyExchangeHandler(TlsContext tlsContext); @Override PskRsaClientKeyExchangeParser getParser(byte[] message, int pointer); @Override PskRsaClientKeyExchangePreparator getPreparator(PskRsaClientKeyExchangeMessage message); @Override PskRsaClientKeyExchangeSerializer getSerializer(PskRsaClientKeyExchangeMessage message); @Override void adjustTLSContext(PskRsaClientKeyExchangeMessage message);  }
@Test public void testGetParser() { assertTrue(handler.getParser(new byte[1], 0) instanceof PskRsaClientKeyExchangeParser); }