PskEcDhClientKeyExchangeHandler extends ClientKeyExchangeHandler<PskEcDhClientKeyExchangeMessage> { @Override public PskEcDhClientKeyExchangePreparator getPreparator(PskEcDhClientKeyExchangeMessage message) { return new PskEcDhClientKeyExchangePreparator(tlsContext.getChooser(), message); } PskEcDhClientKeyExchangeHandler(TlsContext tlsContext); @Override PskEcDhClientKeyExchangeParser getParser(byte[] message, int pointer); @Override PskEcDhClientKeyExchangePreparator getPreparator(PskEcDhClientKeyExchangeMessage message); @Override PskEcDhClientKeyExchangeSerializer getSerializer(PskEcDhClientKeyExchangeMessage message); @Override void adjustTLSContext(PskEcDhClientKeyExchangeMessage message);  }
@Test public void testGetPreparator() { assertTrue(handler.getPreparator(new PskEcDhClientKeyExchangeMessage()) instanceof PskEcDhClientKeyExchangePreparator); }