ECDHClientKeyExchangeHandler extends ClientKeyExchangeHandler<ECDHClientKeyExchangeMessage> { @Override public ECDHClientKeyExchangePreparator getPreparator(ECDHClientKeyExchangeMessage message) { return new ECDHClientKeyExchangePreparator(tlsContext.getChooser(), message); } 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 testGetPreparator() { assertTrue(handler.getPreparator(new ECDHClientKeyExchangeMessage()) instanceof ECDHClientKeyExchangePreparator); }