PWDClientKeyExchangeHandler extends ClientKeyExchangeHandler<PWDClientKeyExchangeMessage> { @Override public PWDClientKeyExchangeParser getParser(byte[] message, int pointer) { return new PWDClientKeyExchangeParser(pointer, message, tlsContext.getChooser().getLastRecordVersion(), AlgorithmResolver.getKeyExchangeAlgorithm(tlsContext.getChooser().getSelectedCipherSuite()), tlsContext.getConfig()); } PWDClientKeyExchangeHandler(TlsContext tlsContext); @Override PWDClientKeyExchangeParser getParser(byte[] message, int pointer); @Override PWDClientKeyExchangePreparator getPreparator(PWDClientKeyExchangeMessage message); @Override PWDClientKeyExchangeSerializer getSerializer(PWDClientKeyExchangeMessage message); @Override void adjustTLSContext(PWDClientKeyExchangeMessage message);  }
@Test public void testGetParser() { assertTrue(handler.getParser(new byte[1], 0) instanceof PWDClientKeyExchangeParser); }