DHClientKeyExchangeHandler extends ClientKeyExchangeHandler<DHClientKeyExchangeMessage> { @Override public DHClientKeyExchangeParser getParser(byte[] message, int pointer) { return new DHClientKeyExchangeParser(pointer, message, tlsContext.getChooser().getLastRecordVersion(), tlsContext.getConfig()); } DHClientKeyExchangeHandler(TlsContext tlsContext); @Override DHClientKeyExchangeParser getParser(byte[] message, int pointer); @Override DHClientKeyExchangePreparator getPreparator(DHClientKeyExchangeMessage message); @Override DHClientKeyExchangeSerializer getSerializer(DHClientKeyExchangeMessage message); @Override void adjustTLSContext(DHClientKeyExchangeMessage message);  }
@Test public void testGetParser() { assertTrue(handler.getParser(new byte[1], 0) instanceof DHClientKeyExchangeParser); }