PskEcDhClientKeyExchangeHandler extends ClientKeyExchangeHandler<PskEcDhClientKeyExchangeMessage> { @Override public PskEcDhClientKeyExchangeParser getParser(byte[] message, int pointer) { return new PskEcDhClientKeyExchangeParser(pointer, message, tlsContext.getChooser().getLastRecordVersion(), tlsContext.getConfig()); } PskEcDhClientKeyExchangeHandler(TlsContext tlsContext); @Override PskEcDhClientKeyExchangeParser getParser(byte[] message, int pointer); @Override PskEcDhClientKeyExchangePreparator getPreparator(PskEcDhClientKeyExchangeMessage message); @Override PskEcDhClientKeyExchangeSerializer getSerializer(PskEcDhClientKeyExchangeMessage message); @Override void adjustTLSContext(PskEcDhClientKeyExchangeMessage message);  }
@Test public void testGetParser() { assertTrue(handler.getParser(new byte[1], 0) instanceof PskEcDhClientKeyExchangeParser); }