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