CertificateMessageHandler extends HandshakeMessageHandler<CertificateMessage> { @Override public CertificateMessagePreparator getPreparator(CertificateMessage message) { return new CertificateMessagePreparator(tlsContext.getChooser(), message); } 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 testGetPreparator() { assertTrue(handler.getPreparator(new CertificateMessage()) instanceof CertificateMessagePreparator); }