ECDHClientKeyExchangeHandler extends ClientKeyExchangeHandler<ECDHClientKeyExchangeMessage> { @Override public ECDHClientKeyExchangeSerializer getSerializer(ECDHClientKeyExchangeMessage message) { return new ECDHClientKeyExchangeSerializer(message, tlsContext.getChooser().getSelectedProtocolVersion()); } ECDHClientKeyExchangeHandler(TlsContext tlsContext); @Override ECDHClientKeyExchangeParser getParser(byte[] message, int pointer); @Override ECDHClientKeyExchangePreparator getPreparator(ECDHClientKeyExchangeMessage message); @Override ECDHClientKeyExchangeSerializer getSerializer(ECDHClientKeyExchangeMessage message); @Override void adjustTLSContext(ECDHClientKeyExchangeMessage message);  }
@Test public void testGetSerializer() { assertTrue(handler.getSerializer(new ECDHClientKeyExchangeMessage()) instanceof ECDHClientKeyExchangeSerializer); }