CertificateRequestHandler extends HandshakeMessageHandler<CertificateRequestMessage> { @Override public CertificateRequestSerializer getSerializer(CertificateRequestMessage message) { return new CertificateRequestSerializer(message, tlsContext.getChooser().getSelectedProtocolVersion()); } 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 testGetSerializer() { assertTrue(handler.getSerializer(new CertificateRequestMessage()) instanceof CertificateRequestSerializer); }