PskClientKeyExchangeHandler extends ClientKeyExchangeHandler<PskClientKeyExchangeMessage> { @Override public PskClientKeyExchangePreparator getPreparator(PskClientKeyExchangeMessage message) { return new PskClientKeyExchangePreparator(tlsContext.getChooser(), message); } PskClientKeyExchangeHandler(TlsContext tlsContext); @Override PskClientKeyExchangeParser getParser(byte[] message, int pointer); @Override PskClientKeyExchangePreparator getPreparator(PskClientKeyExchangeMessage message); @Override PskClientKeyExchangeSerializer getSerializer(PskClientKeyExchangeMessage message); @Override void adjustTLSContext(PskClientKeyExchangeMessage message);  }
@Test public void testGetPreparator() { assertTrue(handler.getPreparator(new PskClientKeyExchangeMessage()) instanceof PskClientKeyExchangePreparator); }