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