DHClientKeyExchangeHandler extends ClientKeyExchangeHandler<DHClientKeyExchangeMessage> { @Override public DHClientKeyExchangePreparator getPreparator(DHClientKeyExchangeMessage message) { return new DHClientKeyExchangePreparator(tlsContext.getChooser(), message); } DHClientKeyExchangeHandler(TlsContext tlsContext); @Override DHClientKeyExchangeParser getParser(byte[] message, int pointer); @Override DHClientKeyExchangePreparator getPreparator(DHClientKeyExchangeMessage message); @Override DHClientKeyExchangeSerializer getSerializer(DHClientKeyExchangeMessage message); @Override void adjustTLSContext(DHClientKeyExchangeMessage message);  }
@Test public void testGetPreparator() { assertTrue(handler.getPreparator(new DHClientKeyExchangeMessage()) instanceof DHClientKeyExchangePreparator); }