PskClientKeyExchangeHandler extends ClientKeyExchangeHandler<PskClientKeyExchangeMessage> { @Override public PskClientKeyExchangeParser getParser(byte[] message, int pointer) { return new PskClientKeyExchangeParser(pointer, message, tlsContext.getChooser().getLastRecordVersion(), tlsContext.getConfig()); } 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 testGetParser() { assertTrue(handler.getParser(new byte[1], 0) instanceof PskClientKeyExchangeParser); }