PskEcDheServerKeyExchangeHandler extends ECDHEServerKeyExchangeHandler<PskEcDheServerKeyExchangeMessage> { @Override public PskEcDheServerKeyExchangeParser getParser(byte[] message, int pointer) { return new PskEcDheServerKeyExchangeParser(pointer, message, tlsContext.getChooser().getLastRecordVersion(), tlsContext.getConfig()); } PskEcDheServerKeyExchangeHandler(TlsContext tlsContext); @Override PskEcDheServerKeyExchangeParser getParser(byte[] message, int pointer); @Override PskEcDheServerKeyExchangePreparator getPreparator(PskEcDheServerKeyExchangeMessage message); @Override PskEcDheServerKeyExchangeSerializer getSerializer(PskEcDheServerKeyExchangeMessage message); @Override void adjustTLSContext(PskEcDheServerKeyExchangeMessage message);  }
@Test public void testGetParser() { assertTrue(handler.getParser(new byte[1], 0) instanceof PskEcDheServerKeyExchangeParser); }