PWDServerKeyExchangeHandler extends ServerKeyExchangeHandler<PWDServerKeyExchangeMessage> { @Override public PWDServerKeyExchangeParser getParser(byte[] message, int pointer) { return new PWDServerKeyExchangeParser(pointer, message, tlsContext.getChooser().getLastRecordVersion(), AlgorithmResolver.getKeyExchangeAlgorithm(tlsContext.getChooser().getSelectedCipherSuite()), tlsContext.getConfig()); } PWDServerKeyExchangeHandler(TlsContext tlsContext); @Override PWDServerKeyExchangeParser getParser(byte[] message, int pointer); @Override PWDServerKeyExchangePreparator getPreparator(PWDServerKeyExchangeMessage message); @Override PWDServerKeyExchangeSerializer getSerializer(PWDServerKeyExchangeMessage message); @Override void adjustTLSContext(PWDServerKeyExchangeMessage message);  }
@Test public void testGetParser() { assertTrue(handler.getParser(new byte[1], 0) instanceof PWDServerKeyExchangeParser); }