CertificateMessageHandler extends HandshakeMessageHandler<CertificateMessage> { @Override public CertificateMessageParser getParser(byte[] message, int pointer) { return new CertificateMessageParser(pointer, message, tlsContext.getChooser().getSelectedProtocolVersion(), tlsContext.getConfig()); } CertificateMessageHandler(TlsContext tlsContext); @Override CertificateMessageParser getParser(byte[] message, int pointer); @Override CertificateMessagePreparator getPreparator(CertificateMessage message); @Override CertificateMessageSerializer getSerializer(CertificateMessage message); @Override void adjustTLSContext(CertificateMessage message);  }
@Test public void testGetParser() { assertTrue(handler.getParser(new byte[1], 0) instanceof CertificateMessageParser); }