PWDServerKeyExchangeHandler extends ServerKeyExchangeHandler<PWDServerKeyExchangeMessage> { @Override public PWDServerKeyExchangePreparator getPreparator(PWDServerKeyExchangeMessage message) { return new PWDServerKeyExchangePreparator(tlsContext.getChooser(), message); } PWDServerKeyExchangeHandler(TlsContext tlsContext); @Override PWDServerKeyExchangeParser getParser(byte[] message, int pointer); @Override PWDServerKeyExchangePreparator getPreparator(PWDServerKeyExchangeMessage message); @Override PWDServerKeyExchangeSerializer getSerializer(PWDServerKeyExchangeMessage message); @Override void adjustTLSContext(PWDServerKeyExchangeMessage message);  }
@Test public void testGetPreparator() { assertTrue(handler.getPreparator(new PWDServerKeyExchangeMessage()) instanceof PWDServerKeyExchangePreparator); }