PskClientKeyExchangeHandler extends ClientKeyExchangeHandler<PskClientKeyExchangeMessage> { @Override public PskClientKeyExchangeSerializer getSerializer(PskClientKeyExchangeMessage message) { return new PskClientKeyExchangeSerializer(message, tlsContext.getChooser().getSelectedProtocolVersion()); } PskClientKeyExchangeHandler(TlsContext tlsContext); @Override PskClientKeyExchangeParser getParser(byte[] message, int pointer); @Override PskClientKeyExchangePreparator getPreparator(PskClientKeyExchangeMessage message); @Override PskClientKeyExchangeSerializer getSerializer(PskClientKeyExchangeMessage message); @Override void adjustTLSContext(PskClientKeyExchangeMessage message);  }
@Test public void testGetSerializer() { assertTrue(handler.getSerializer(new PskClientKeyExchangeMessage()) instanceof PskClientKeyExchangeSerializer); }