ECDHEServerKeyExchangeHandler extends ServerKeyExchangeHandler<T> { @Override public ECDHEServerKeyExchangeParser getParser(byte[] message, int pointer) { return new ECDHEServerKeyExchangeParser(pointer, message, tlsContext.getChooser().getLastRecordVersion(), AlgorithmResolver.getKeyExchangeAlgorithm(tlsContext.getChooser().getSelectedCipherSuite()), tlsContext.getConfig()); } ECDHEServerKeyExchangeHandler(TlsContext tlsContext); @Override ECDHEServerKeyExchangeParser getParser(byte[] message, int pointer); @Override ECDHEServerKeyExchangePreparator getPreparator(ECDHEServerKeyExchangeMessage message); @Override ECDHEServerKeyExchangeSerializer getSerializer(ECDHEServerKeyExchangeMessage message); @Override void adjustTLSContext(ECDHEServerKeyExchangeMessage message);  }
@Test public void testGetParser() { assertTrue(handler.getParser(new byte[1], 0) instanceof ECDHEServerKeyExchangeParser); }