PWDClientKeyExchangeHandler extends ClientKeyExchangeHandler<PWDClientKeyExchangeMessage> { @Override public PWDClientKeyExchangeSerializer getSerializer(PWDClientKeyExchangeMessage message) { return new PWDClientKeyExchangeSerializer(message, tlsContext.getChooser().getSelectedProtocolVersion()); } PWDClientKeyExchangeHandler(TlsContext tlsContext); @Override PWDClientKeyExchangeParser getParser(byte[] message, int pointer); @Override PWDClientKeyExchangePreparator getPreparator(PWDClientKeyExchangeMessage message); @Override PWDClientKeyExchangeSerializer getSerializer(PWDClientKeyExchangeMessage message); @Override void adjustTLSContext(PWDClientKeyExchangeMessage message);  }
@Test public void testGetSerializer() { assertTrue(handler.getSerializer(new PWDClientKeyExchangeMessage()) instanceof PWDClientKeyExchangeSerializer); }