PWDServerKeyExchangeHandler extends ServerKeyExchangeHandler<PWDServerKeyExchangeMessage> { @Override public PWDServerKeyExchangeSerializer getSerializer(PWDServerKeyExchangeMessage message) { return new PWDServerKeyExchangeSerializer(message, tlsContext.getChooser().getSelectedProtocolVersion()); } PWDServerKeyExchangeHandler(TlsContext tlsContext); @Override PWDServerKeyExchangeParser getParser(byte[] message, int pointer); @Override PWDServerKeyExchangePreparator getPreparator(PWDServerKeyExchangeMessage message); @Override PWDServerKeyExchangeSerializer getSerializer(PWDServerKeyExchangeMessage message); @Override void adjustTLSContext(PWDServerKeyExchangeMessage message);  }
@Test public void testGetSerializer() { assertTrue(handler.getSerializer(new PWDServerKeyExchangeMessage()) instanceof PWDServerKeyExchangeSerializer); }