CertificateRequestHandler extends HandshakeMessageHandler<CertificateRequestMessage> { @Override public CertificateRequestPreparator getPreparator(CertificateRequestMessage message) { return new CertificateRequestPreparator(tlsContext.getChooser(), message); } CertificateRequestHandler(TlsContext tlsContext); @Override CertificateRequestParser getParser(byte[] message, int pointer); @Override CertificateRequestPreparator getPreparator(CertificateRequestMessage message); @Override CertificateRequestSerializer getSerializer(CertificateRequestMessage message); @Override void adjustTLSContext(CertificateRequestMessage message);  }
@Test public void testGetPreparator() { assertTrue(handler.getPreparator(new CertificateRequestMessage()) instanceof CertificateRequestPreparator); }