DHEServerKeyExchangeHandler extends ServerKeyExchangeHandler<DHEServerKeyExchangeMessage> { @Override public DHEServerKeyExchangePreparator getPreparator(DHEServerKeyExchangeMessage message) { return new DHEServerKeyExchangePreparator(tlsContext.getChooser(), message); } DHEServerKeyExchangeHandler(TlsContext tlsContext); @Override DHEServerKeyExchangeParser getParser(byte[] message, int pointer); @Override DHEServerKeyExchangePreparator getPreparator(DHEServerKeyExchangeMessage message); @Override DHEServerKeyExchangeSerializer getSerializer(DHEServerKeyExchangeMessage message); @Override void adjustTLSContext(DHEServerKeyExchangeMessage message);  }
@Test public void testGetPreparator() { assertTrue(handler.getPreparator(new DHEServerKeyExchangeMessage()) instanceof DHEServerKeyExchangePreparator); }