ECDHEServerKeyExchangeHandler extends ServerKeyExchangeHandler<T> { @Override public ECDHEServerKeyExchangePreparator getPreparator(ECDHEServerKeyExchangeMessage message) { return new ECDHEServerKeyExchangePreparator(tlsContext.getChooser(), message); } 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 testGetPreparator() { assertTrue(handler.getPreparator(new ECDHEServerKeyExchangeMessage()) instanceof ECDHEServerKeyExchangePreparator); }