PskRsaClientKeyExchangeHandler extends ClientKeyExchangeHandler<PskRsaClientKeyExchangeMessage> { @Override public PskRsaClientKeyExchangePreparator getPreparator(PskRsaClientKeyExchangeMessage message) { return new PskRsaClientKeyExchangePreparator(tlsContext.getChooser(), message); } PskRsaClientKeyExchangeHandler(TlsContext tlsContext); @Override PskRsaClientKeyExchangeParser getParser(byte[] message, int pointer); @Override PskRsaClientKeyExchangePreparator getPreparator(PskRsaClientKeyExchangeMessage message); @Override PskRsaClientKeyExchangeSerializer getSerializer(PskRsaClientKeyExchangeMessage message); @Override void adjustTLSContext(PskRsaClientKeyExchangeMessage message);  }
@Test public void testGetPreparator() { assertTrue(handler.getPreparator(new PskRsaClientKeyExchangeMessage()) instanceof PskRsaClientKeyExchangePreparator); }