SrpServerKeyExchangeHandler extends ServerKeyExchangeHandler<SrpServerKeyExchangeMessage> { @Override public SrpServerKeyExchangeSerializer getSerializer(SrpServerKeyExchangeMessage message) { return new SrpServerKeyExchangeSerializer(message, tlsContext.getChooser().getSelectedProtocolVersion()); } 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 testGetSerializer() { assertTrue(handler.getSerializer(new SrpServerKeyExchangeMessage()) instanceof SrpServerKeyExchangeSerializer); }