PskEcDheServerKeyExchangeHandler extends ECDHEServerKeyExchangeHandler<PskEcDheServerKeyExchangeMessage> { @Override public PskEcDheServerKeyExchangeSerializer getSerializer(PskEcDheServerKeyExchangeMessage message) { return new PskEcDheServerKeyExchangeSerializer(message, tlsContext.getChooser().getSelectedProtocolVersion()); } PskEcDheServerKeyExchangeHandler(TlsContext tlsContext); @Override PskEcDheServerKeyExchangeParser getParser(byte[] message, int pointer); @Override PskEcDheServerKeyExchangePreparator getPreparator(PskEcDheServerKeyExchangeMessage message); @Override PskEcDheServerKeyExchangeSerializer getSerializer(PskEcDheServerKeyExchangeMessage message); @Override void adjustTLSContext(PskEcDheServerKeyExchangeMessage message);  }
@Test public void testGetSerializer() { assertTrue(handler.getSerializer(new PskEcDheServerKeyExchangeMessage()) instanceof PskEcDheServerKeyExchangeSerializer); }