PskEcDhClientKeyExchangeHandler extends ClientKeyExchangeHandler<PskEcDhClientKeyExchangeMessage> { @Override public PskEcDhClientKeyExchangeSerializer getSerializer(PskEcDhClientKeyExchangeMessage message) { return new PskEcDhClientKeyExchangeSerializer(message, tlsContext.getChooser().getSelectedProtocolVersion()); } PskEcDhClientKeyExchangeHandler(TlsContext tlsContext); @Override PskEcDhClientKeyExchangeParser getParser(byte[] message, int pointer); @Override PskEcDhClientKeyExchangePreparator getPreparator(PskEcDhClientKeyExchangeMessage message); @Override PskEcDhClientKeyExchangeSerializer getSerializer(PskEcDhClientKeyExchangeMessage message); @Override void adjustTLSContext(PskEcDhClientKeyExchangeMessage message);  }
@Test public void testGetSerializer() { assertTrue(handler.getSerializer(new PskEcDhClientKeyExchangeMessage()) instanceof PskEcDhClientKeyExchangeSerializer); }