PWDClientKeyExchangeHandler extends ClientKeyExchangeHandler<PWDClientKeyExchangeMessage> { @Override public PWDClientKeyExchangePreparator getPreparator(PWDClientKeyExchangeMessage message) { return new PWDClientKeyExchangePreparator(tlsContext.getChooser(), message); } PWDClientKeyExchangeHandler(TlsContext tlsContext); @Override PWDClientKeyExchangeParser getParser(byte[] message, int pointer); @Override PWDClientKeyExchangePreparator getPreparator(PWDClientKeyExchangeMessage message); @Override PWDClientKeyExchangeSerializer getSerializer(PWDClientKeyExchangeMessage message); @Override void adjustTLSContext(PWDClientKeyExchangeMessage message);  }
@Test public void testGetPreparator() { assertTrue(handler.getPreparator(new PWDClientKeyExchangeMessage()) instanceof PWDClientKeyExchangePreparator); }