PskDheServerKeyExchangeHandler extends ServerKeyExchangeHandler<PskDheServerKeyExchangeMessage> { @Override public PskDheServerKeyExchangeParser getParser(byte[] message, int pointer) { return new PskDheServerKeyExchangeParser(pointer, message, tlsContext.getChooser().getLastRecordVersion(), tlsContext.getConfig()); } PskDheServerKeyExchangeHandler(TlsContext tlsContext); @Override PskDheServerKeyExchangeParser getParser(byte[] message, int pointer); @Override PskDheServerKeyExchangePreparator getPreparator(PskDheServerKeyExchangeMessage message); @Override PskDheServerKeyExchangeSerializer getSerializer(PskDheServerKeyExchangeMessage message); @Override void adjustTLSContext(PskDheServerKeyExchangeMessage message);  }
@Test public void testGetParser() { assertTrue(handler.getParser(new byte[1], 0) instanceof PskDheServerKeyExchangeParser); }