SrpServerKeyExchangeHandler extends ServerKeyExchangeHandler<SrpServerKeyExchangeMessage> { @Override public SrpServerKeyExchangePreparator getPreparator(SrpServerKeyExchangeMessage message) { return new SrpServerKeyExchangePreparator(tlsContext.getChooser(), message); } SrpServerKeyExchangeHandler(TlsContext tlsContext); @Override SrpServerKeyExchangeParser getParser(byte[] message, int pointer); @Override SrpServerKeyExchangePreparator getPreparator(SrpServerKeyExchangeMessage message); @Override SrpServerKeyExchangeSerializer getSerializer(SrpServerKeyExchangeMessage message); @Override void adjustTLSContext(SrpServerKeyExchangeMessage message);  }
@Test public void testGetPreparator() { assertTrue(handler.getPreparator(new SrpServerKeyExchangeMessage()) instanceof SrpServerKeyExchangePreparator); }