PskDhClientKeyExchangeHandler extends ClientKeyExchangeHandler<PskDhClientKeyExchangeMessage> { @Override public PskDhClientKeyExchangeParser getParser(byte[] message, int pointer) { return new PskDhClientKeyExchangeParser(pointer, message, tlsContext.getChooser().getLastRecordVersion(), tlsContext.getConfig()); } PskDhClientKeyExchangeHandler(TlsContext tlsContext); @Override PskDhClientKeyExchangeParser getParser(byte[] message, int pointer); @Override PskDhClientKeyExchangePreparator getPreparator(PskDhClientKeyExchangeMessage message); @Override PskDhClientKeyExchangeSerializer getSerializer(PskDhClientKeyExchangeMessage message); @Override void adjustTLSContext(PskDhClientKeyExchangeMessage message);  }
@Test public void testGetParser() { assertTrue(handler.getParser(new byte[1], 0) instanceof PskDhClientKeyExchangeParser); }