CertificateTypeExtensionHandler extends ExtensionHandler<CertificateTypeExtensionMessage> { @Override public CertificateTypeExtensionSerializer getSerializer(CertificateTypeExtensionMessage message) { return new CertificateTypeExtensionSerializer(message); } CertificateTypeExtensionHandler(TlsContext context); @Override CertificateTypeExtensionParser getParser(byte[] message, int pointer); @Override CertificateTypeExtensionPreparator getPreparator(CertificateTypeExtensionMessage message); @Override CertificateTypeExtensionSerializer getSerializer(CertificateTypeExtensionMessage message); @Override void adjustTLSExtensionContext(CertificateTypeExtensionMessage message);  }
@Test public void testGetSerializer() { assertTrue(handler.getSerializer(new CertificateTypeExtensionMessage()) instanceof CertificateTypeExtensionSerializer); }