PskRsaClientKeyExchangeHandler extends ClientKeyExchangeHandler<PskRsaClientKeyExchangeMessage> { @Override public PskRsaClientKeyExchangeSerializer getSerializer(PskRsaClientKeyExchangeMessage message) { return new PskRsaClientKeyExchangeSerializer(message, tlsContext.getChooser().getSelectedProtocolVersion()); } PskRsaClientKeyExchangeHandler(TlsContext tlsContext); @Override PskRsaClientKeyExchangeParser getParser(byte[] message, int pointer); @Override PskRsaClientKeyExchangePreparator getPreparator(PskRsaClientKeyExchangeMessage message); @Override PskRsaClientKeyExchangeSerializer getSerializer(PskRsaClientKeyExchangeMessage message); @Override void adjustTLSContext(PskRsaClientKeyExchangeMessage message);  }
@Test public void testGetSerializer() { assertTrue(handler.getSerializer(new PskRsaClientKeyExchangeMessage()) instanceof PskRsaClientKeyExchangeSerializer); }