PskEcDheServerKeyExchangeHandler extends ECDHEServerKeyExchangeHandler<PskEcDheServerKeyExchangeMessage> { @Override public PskEcDheServerKeyExchangePreparator getPreparator(PskEcDheServerKeyExchangeMessage message) { return new PskEcDheServerKeyExchangePreparator(tlsContext.getChooser(), message); } PskEcDheServerKeyExchangeHandler(TlsContext tlsContext); @Override PskEcDheServerKeyExchangeParser getParser(byte[] message, int pointer); @Override PskEcDheServerKeyExchangePreparator getPreparator(PskEcDheServerKeyExchangeMessage message); @Override PskEcDheServerKeyExchangeSerializer getSerializer(PskEcDheServerKeyExchangeMessage message); @Override void adjustTLSContext(PskEcDheServerKeyExchangeMessage message);  }
@Test public void testGetPreparator() { assertTrue(handler.getPreparator(new PskEcDheServerKeyExchangeMessage()) instanceof PskEcDheServerKeyExchangePreparator); }