ServerCertificateTypeExtensionHandler extends ExtensionHandler<ServerCertificateTypeExtensionMessage> { @Override public ServerCertificateTypeExtensionSerializer getSerializer(ServerCertificateTypeExtensionMessage message) { return new ServerCertificateTypeExtensionSerializer(message); } ServerCertificateTypeExtensionHandler(TlsContext context); @Override ServerCertificateTypeExtensionParser getParser(byte[] message, int pointer); @Override ServerCertificateTypeExtensionPreparator getPreparator(ServerCertificateTypeExtensionMessage message); @Override ServerCertificateTypeExtensionSerializer getSerializer(ServerCertificateTypeExtensionMessage message); @Override void adjustTLSExtensionContext(ServerCertificateTypeExtensionMessage message);  }
@Test public void testGetSerializer() { assertTrue(handler.getSerializer(new ServerCertificateTypeExtensionMessage()) instanceof ServerCertificateTypeExtensionSerializer); }