PskDhClientKeyExchangeHandler extends ClientKeyExchangeHandler<PskDhClientKeyExchangeMessage> { @Override public PskDhClientKeyExchangePreparator getPreparator(PskDhClientKeyExchangeMessage message) { return new PskDhClientKeyExchangePreparator(tlsContext.getChooser(), message); } PskDhClientKeyExchangeHandler(TlsContext tlsContext); @Override PskDhClientKeyExchangeParser getParser(byte[] message, int pointer); @Override PskDhClientKeyExchangePreparator getPreparator(PskDhClientKeyExchangeMessage message); @Override PskDhClientKeyExchangeSerializer getSerializer(PskDhClientKeyExchangeMessage message); @Override void adjustTLSContext(PskDhClientKeyExchangeMessage message);  }
@Test public void testGetPreparator() { assertTrue(handler.getPreparator(new PskDhClientKeyExchangeMessage()) instanceof PskDhClientKeyExchangePreparator); }