PskServerKeyExchangeHandler extends ServerKeyExchangeHandler<PskServerKeyExchangeMessage> { @Override public PskServerKeyExchangeParser getParser(byte[] message, int pointer) { return new PskServerKeyExchangeParser(pointer, message, tlsContext.getChooser().getLastRecordVersion(), tlsContext.getConfig()); } PskServerKeyExchangeHandler(TlsContext tlsContext); @Override PskServerKeyExchangeParser getParser(byte[] message, int pointer); @Override PskServerKeyExchangePreparator getPreparator(PskServerKeyExchangeMessage message); @Override PskServerKeyExchangeSerializer getSerializer(PskServerKeyExchangeMessage message); @Override void adjustTLSContext(PskServerKeyExchangeMessage message);  }
@Test public void testGetParser() { assertTrue(handler.getParser(new byte[1], 0) instanceof PskServerKeyExchangeParser); }